pub(crate) struct BrowsingContextActor {Show 18 fields
pub name: String,
pub title: RefCell<String>,
pub url: RefCell<String>,
pub browser_id: DevtoolsBrowserId,
pub active_pipeline_id: Cell<PipelineId>,
pub active_outer_window_id: Cell<DevtoolsOuterWindowId>,
pub browsing_context_id: DevtoolsBrowsingContextId,
pub accessibility: String,
pub console: String,
pub css_properties: String,
pub inspector: String,
pub reflow: String,
pub style_sheets: String,
pub thread: String,
pub _tab: String,
pub script_chan: IpcSender<DevtoolScriptControlMsg>,
pub streams: RefCell<HashMap<StreamId, TcpStream>>,
pub watcher: 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: RefCell<String>
§url: RefCell<String>
§browser_id: DevtoolsBrowserId
This corresponds to webview_id
active_pipeline_id: Cell<PipelineId>
§active_outer_window_id: Cell<DevtoolsOuterWindowId>
§browsing_context_id: DevtoolsBrowsingContextId
§accessibility: String
§console: String
§css_properties: String
§inspector: String
§reflow: String
§style_sheets: String
§thread: String
§_tab: String
§script_chan: IpcSender<DevtoolScriptControlMsg>
§streams: RefCell<HashMap<StreamId, TcpStream>>
§watcher: String
Implementations§
Source§impl BrowsingContextActor
impl BrowsingContextActor
pub(crate) fn new( console: String, browser_id: DevtoolsBrowserId, browsing_context_id: DevtoolsBrowsingContextId, page_info: DevtoolsPageInfo, pipeline_id: PipelineId, outer_window_id: DevtoolsOuterWindowId, script_sender: IpcSender<DevtoolScriptControlMsg>, actors: &mut ActorRegistry, ) -> BrowsingContextActor
pub fn encodable(&self) -> BrowsingContextActorMsg
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<(), ()>
Trait Implementations§
Source§impl Actor for BrowsingContextActor
impl Actor for BrowsingContextActor
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