pub(crate) struct BrowsingContextActor {Show 17 fields
name: String,
pub title: AtomicRefCell<String>,
pub url: AtomicRefCell<String>,
pub browser_id: DevtoolsBrowserId,
active_pipeline_id: AtomicRefCell<PipelineId>,
active_outer_window_id: AtomicRefCell<DevtoolsOuterWindowId>,
pub browsing_context_id: DevtoolsBrowsingContextId,
accessibility_name: String,
pub console_name: String,
css_properties_name: String,
pub(crate) inspector_name: String,
reflow_name: String,
style_sheets_name: String,
pub thread_name: String,
_tab: String,
script_chans: AtomicRefCell<FxHashMap<PipelineId, GenericSender<DevtoolScriptControlMsg>>>,
pub watcher_name: String,
}Expand description
The browsing context actor encompasses all of the other supporting actors when debugging a web view. To this extent, it contains a watcher actor that helps when communicating with the host, as well as resource actors that each perform one debugging function.
Fields§
§name: String§title: AtomicRefCell<String>§url: AtomicRefCell<String>§browser_id: DevtoolsBrowserIdThis corresponds to webview_id
active_pipeline_id: AtomicRefCell<PipelineId>§active_outer_window_id: AtomicRefCell<DevtoolsOuterWindowId>§browsing_context_id: DevtoolsBrowsingContextId§accessibility_name: String§console_name: String§css_properties_name: String§inspector_name: String§reflow_name: String§style_sheets_name: String§thread_name: String§_tab: String§script_chans: AtomicRefCell<FxHashMap<PipelineId, GenericSender<DevtoolScriptControlMsg>>>§watcher_name: StringImplementations§
Source§impl BrowsingContextActor
impl BrowsingContextActor
pub(crate) fn register( registry: &ActorRegistry, console_name: String, browser_id: DevtoolsBrowserId, browsing_context_id: DevtoolsBrowsingContextId, page_info: DevtoolsPageInfo, pipeline_id: PipelineId, outer_window_id: DevtoolsOuterWindowId, script_sender: GenericSender<DevtoolScriptControlMsg>, ) -> String
pub(crate) fn handle_new_global( &self, pipeline: PipelineId, script_sender: GenericSender<DevtoolScriptControlMsg>, )
pub(crate) fn title_changed(&self, pipeline_id: PipelineId, title: String)
pub(crate) fn frame_update(&self, request: &mut ClientRequest<'_, '_>)
pub fn simulate_color_scheme(&self, theme: Theme) -> Result<(), ()>
pub(crate) fn pipeline_id(&self) -> PipelineId
pub(crate) fn outer_window_id(&self) -> DevtoolsOuterWindowId
Sourcepub(crate) fn script_chan(&self) -> GenericSender<DevtoolScriptControlMsg>
pub(crate) fn script_chan(&self) -> GenericSender<DevtoolScriptControlMsg>
Returns the script sender for the active pipeline.
pub(crate) fn instruct_script_to_send_live_updates( &self, should_send_updates: bool, )
Trait Implementations§
Source§impl Actor for BrowsingContextActor
impl Actor for BrowsingContextActor
Source§impl ActorEncode<BrowsingContextActorMsg> for BrowsingContextActor
impl ActorEncode<BrowsingContextActorMsg> for BrowsingContextActor
fn encode(&self, _: &ActorRegistry) -> BrowsingContextActorMsg
Source§impl MallocSizeOf for BrowsingContextActor
impl MallocSizeOf for BrowsingContextActor
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl ResourceAvailable for BrowsingContextActor
impl ResourceAvailable for BrowsingContextActor
fn actor_name(&self) -> String
fn resource_array<T: Serialize, S: JsonPacketStream>( &self, resource: T, resource_type: String, array_type: ResourceArrayType, stream: &mut S, )
fn resources_array<T: Serialize, S: JsonPacketStream>( &self, resources: Vec<T>, resource_type: String, array_type: ResourceArrayType, stream: &mut S, )
Auto Trait Implementations§
impl !Freeze for BrowsingContextActor
impl !RefUnwindSafe for BrowsingContextActor
impl Send for BrowsingContextActor
impl Sync for BrowsingContextActor
impl Unpin for BrowsingContextActor
impl UnwindSafe for BrowsingContextActor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert