pub(crate) struct DevtoolsInstance {
pub(crate) actors: Arc<Mutex<ActorRegistry>>,
pub(crate) id_map: Arc<Mutex<IdMap>>,
pub(crate) browsing_contexts: HashMap<BrowsingContextId, String>,
pub(crate) receiver: Receiver<DevtoolsControlMsg>,
pub(crate) pipelines: HashMap<PipelineId, BrowsingContextId>,
pub(crate) actor_workers: HashMap<WorkerId, String>,
pub(crate) actor_requests: HashMap<String, String>,
pub(crate) connections: HashMap<StreamId, TcpStream>,
}
Fields§
§actors: Arc<Mutex<ActorRegistry>>
§id_map: Arc<Mutex<IdMap>>
§browsing_contexts: HashMap<BrowsingContextId, String>
§receiver: Receiver<DevtoolsControlMsg>
§pipelines: HashMap<PipelineId, BrowsingContextId>
§actor_workers: HashMap<WorkerId, String>
§actor_requests: HashMap<String, String>
§connections: HashMap<StreamId, TcpStream>
Implementations§
Source§impl DevtoolsInstance
impl DevtoolsInstance
pub(crate) fn create( sender: Sender<DevtoolsControlMsg>, receiver: Receiver<DevtoolsControlMsg>, port: u16, embedder: EmbedderProxy, ) -> Option<Self>
pub(crate) fn run(self)
pub(crate) fn handle_framerate_tick(&self, actor_name: String, tick: f64)
pub(crate) fn handle_new_global( &mut self, ids: (BrowsingContextId, PipelineId, Option<WorkerId>, WebViewId), script_sender: IpcSender<DevtoolScriptControlMsg>, page_info: DevtoolsPageInfo, )
pub(crate) fn handle_title_changed( &self, pipeline_id: PipelineId, title: String, )
pub(crate) fn handle_page_error( &self, pipeline_id: PipelineId, worker_id: Option<WorkerId>, page_error: PageError, )
pub(crate) fn handle_console_message( &self, pipeline_id: PipelineId, worker_id: Option<WorkerId>, console_message: ConsoleMessage, )
pub(crate) fn find_console_actor( &self, pipeline_id: PipelineId, worker_id: Option<WorkerId>, ) -> Option<String>
pub(crate) fn handle_network_event( &mut self, connections: Vec<TcpStream>, pipeline_id: PipelineId, request_id: String, network_event: NetworkEvent, )
pub(crate) fn find_network_event_actor(&mut self, request_id: String) -> String
pub(crate) fn handle_script_source_info( &mut self, pipeline_id: PipelineId, source_info: SourceInfo, )
Auto Trait Implementations§
impl Freeze for DevtoolsInstance
impl RefUnwindSafe for DevtoolsInstance
impl Send for DevtoolsInstance
impl Sync for DevtoolsInstance
impl Unpin for DevtoolsInstance
impl UnwindSafe for DevtoolsInstance
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