Struct devtools::actors::browsing_context::BrowsingContextActor
source · pub(crate) struct BrowsingContextActor {Show 16 fields
pub name: String,
pub title: RefCell<String>,
pub url: RefCell<String>,
pub active_pipeline: Cell<PipelineId>,
pub browsing_context_id: BrowsingContextId,
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>
§active_pipeline: Cell<PipelineId>
§browsing_context_id: BrowsingContextId
§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, id: BrowsingContextId, page_info: DevtoolsPageInfo, pipeline: PipelineId, script_sender: IpcSender<DevtoolScriptControlMsg>, actors: &mut ActorRegistry, ) -> BrowsingContextActor
pub fn encodable(&self) -> BrowsingContextActorMsg
pub(crate) fn title_changed(&self, pipeline: PipelineId, title: String)
pub(crate) fn frame_update(&self, stream: &mut TcpStream)
pub(crate) fn resource_available<T: Serialize>( &self, message: T, resource_type: String, )
Trait Implementations§
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