Struct script::messaging::ScriptThreadSenders
source · pub(crate) struct ScriptThreadSenders {
pub self_sender: MainThreadScriptChan,
pub bluetooth_sender: IpcSender<BluetoothRequest>,
pub constellation_sender: IpcSender<ConstellationControlMsg>,
pub pipeline_to_constellation_sender: IpcSender<(PipelineId, ScriptMsg)>,
pub layout_to_constellation_ipc_sender: IpcSender<LayoutMsg>,
pub image_cache_sender: Sender<(PipelineId, PendingImageResponse)>,
pub time_profiler_sender: ProfilerChan,
pub memory_profiler_sender: ProfilerChan,
pub devtools_server_sender: Option<IpcSender<ScriptToDevtoolsControlMsg>>,
pub devtools_client_to_script_thread_sender: IpcSender<DevtoolScriptControlMsg>,
pub content_process_shutdown_sender: Sender<()>,
}
Fields§
§self_sender: MainThreadScriptChan
A channel to hand out to script thread-based entities that need to be able to enqueue events in the event queue.
bluetooth_sender: IpcSender<BluetoothRequest>
A handle to the bluetooth thread.
constellation_sender: IpcSender<ConstellationControlMsg>
A Sender
that sends messages to the Constellation
.
pipeline_to_constellation_sender: IpcSender<(PipelineId, ScriptMsg)>
A Sender
that sends messages to the Constellation
associated with
particular pipelines.
layout_to_constellation_ipc_sender: IpcSender<LayoutMsg>
A sender for layout to communicate to the constellation.
image_cache_sender: Sender<(PipelineId, PendingImageResponse)>
The Sender
on which messages can be sent to the ImageCache
.
time_profiler_sender: ProfilerChan
For providing contact with the time profiler.
memory_profiler_sender: ProfilerChan
For providing contact with the memory profiler.
devtools_server_sender: Option<IpcSender<ScriptToDevtoolsControlMsg>>
For providing instructions to an optional devtools server.
devtools_client_to_script_thread_sender: IpcSender<DevtoolScriptControlMsg>
§content_process_shutdown_sender: Sender<()>
Trait Implementations§
source§impl Clone for ScriptThreadSenders
impl Clone for ScriptThreadSenders
source§fn clone(&self) -> ScriptThreadSenders
fn clone(&self) -> ScriptThreadSenders
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ScriptThreadSenders
impl !RefUnwindSafe for ScriptThreadSenders
impl Send for ScriptThreadSenders
impl !Sync for ScriptThreadSenders
impl Unpin for ScriptThreadSenders
impl UnwindSafe for ScriptThreadSenders
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. 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