Struct script::task_manager::TaskManager
source · pub struct TaskManager {
pub task_cancellers: DomRefCell<HashMap<TaskSourceName, Arc<AtomicBool>>>,
dom_manipulation_task_source: DOMManipulationTaskSource,
file_reading_task_source: FileReadingTaskSource,
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,
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
§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
§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,
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,
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 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 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 !RefUnwindSafe for TaskManager
impl Send for TaskManager
impl !Sync for TaskManager
impl Unpin for TaskManager
impl !UnwindSafe for TaskManager
Blanket Implementations§
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> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
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