Struct script::task_manager::TaskManager
source · pub struct TaskManager {Show 14 fields
pub task_cancellers: DomRefCell<HashMap<TaskSourceName, Arc<AtomicBool>>>,
dom_manipulation_task_source: DOMManipulationTaskSource,
file_reading_task_source: FileReadingTaskSource,
gamepad_task_source: GamepadTaskSource,
history_traversal_task_source: HistoryTraversalTaskSource,
media_element_task_source: MediaElementTaskSource,
networking_task_source: NetworkingTaskSource,
performance_timeline_task_source: PerformanceTimelineTaskSource,
port_message_queue: PortMessageQueue,
user_interaction_task_source: UserInteractionTaskSource,
remote_event_task_source: RemoteEventTaskSource,
rendering_task_source: RenderingTaskSource,
timer_task_source: TimerTaskSource,
websocket_task_source: WebsocketTaskSource,
}
Fields§
§task_cancellers: DomRefCell<HashMap<TaskSourceName, Arc<AtomicBool>>>
§dom_manipulation_task_source: DOMManipulationTaskSource
§file_reading_task_source: FileReadingTaskSource
§gamepad_task_source: GamepadTaskSource
§history_traversal_task_source: HistoryTraversalTaskSource
§media_element_task_source: MediaElementTaskSource
§networking_task_source: NetworkingTaskSource
§performance_timeline_task_source: PerformanceTimelineTaskSource
§port_message_queue: PortMessageQueue
§user_interaction_task_source: UserInteractionTaskSource
§remote_event_task_source: RemoteEventTaskSource
§rendering_task_source: RenderingTaskSource
§timer_task_source: TimerTaskSource
§websocket_task_source: WebsocketTaskSource
Implementations§
source§impl TaskManager
impl TaskManager
pub fn new( dom_manipulation_task_source: DOMManipulationTaskSource, file_reading_task_source: FileReadingTaskSource, gamepad_task_source: GamepadTaskSource, history_traversal_task_source: HistoryTraversalTaskSource, media_element_task_source: MediaElementTaskSource, networking_task_source: NetworkingTaskSource, performance_timeline_task_source: PerformanceTimelineTaskSource, port_message_queue: PortMessageQueue, user_interaction_task_source: UserInteractionTaskSource, remote_event_task_source: RemoteEventTaskSource, rendering_task_source: RenderingTaskSource, timer_task_source: TimerTaskSource, websocket_task_source: WebsocketTaskSource, ) -> Self
pub fn dom_manipulation_task_source_with_canceller( &self, ) -> (DOMManipulationTaskSource, TaskCanceller)
pub fn dom_manipulation_task_source(&self) -> DOMManipulationTaskSource
pub fn gamepad_task_source_with_canceller( &self, ) -> (GamepadTaskSource, TaskCanceller)
pub fn gamepad_task_source(&self) -> GamepadTaskSource
pub fn media_element_task_source_with_canceller( &self, ) -> (MediaElementTaskSource, TaskCanceller)
pub fn media_element_task_source(&self) -> MediaElementTaskSource
pub fn user_interaction_task_source_with_canceller( &self, ) -> (UserInteractionTaskSource, TaskCanceller)
pub fn user_interaction_task_source(&self) -> UserInteractionTaskSource
pub fn networking_task_source_with_canceller( &self, ) -> (NetworkingTaskSource, TaskCanceller)
pub fn networking_task_source(&self) -> NetworkingTaskSource
pub fn file_reading_task_source_with_canceller( &self, ) -> (FileReadingTaskSource, TaskCanceller)
pub fn file_reading_task_source(&self) -> FileReadingTaskSource
pub fn history_traversal_task_source_with_canceller( &self, ) -> (HistoryTraversalTaskSource, TaskCanceller)
pub fn history_traversal_task_source(&self) -> HistoryTraversalTaskSource
pub fn performance_timeline_task_source_with_canceller( &self, ) -> (PerformanceTimelineTaskSource, TaskCanceller)
pub fn performance_timeline_task_source(&self) -> PerformanceTimelineTaskSource
pub fn port_message_queue_with_canceller( &self, ) -> (PortMessageQueue, TaskCanceller)
pub fn port_message_queue(&self) -> PortMessageQueue
pub fn remote_event_task_source_with_canceller( &self, ) -> (RemoteEventTaskSource, TaskCanceller)
pub fn remote_event_task_source(&self) -> RemoteEventTaskSource
pub fn rendering_task_source_with_canceller( &self, ) -> (RenderingTaskSource, TaskCanceller)
pub fn rendering_task_source(&self) -> RenderingTaskSource
pub fn timer_task_source_with_canceller( &self, ) -> (TimerTaskSource, TaskCanceller)
pub fn timer_task_source(&self) -> TimerTaskSource
pub fn websocket_task_source_with_canceller( &self, ) -> (WebsocketTaskSource, TaskCanceller)
pub fn websocket_task_source(&self) -> WebsocketTaskSource
pub fn task_canceller(&self, name: TaskSourceName) -> TaskCanceller
Trait Implementations§
source§impl MallocSizeOf for TaskManager
impl MallocSizeOf for TaskManager
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.
Auto Trait Implementations§
impl !Freeze for TaskManager
impl !RefUnwindSafe for TaskManager
impl Send for TaskManager
impl !Sync for TaskManager
impl Unpin for TaskManager
impl !UnwindSafe for TaskManager
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> 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