Trait script::task_queue::QueuedTaskConversion
source · pub trait QueuedTaskConversion {
// Required methods
fn task_source_name(&self) -> Option<&TaskSourceName>;
fn pipeline_id(&self) -> Option<PipelineId>;
fn into_queued_task(
self,
) -> Option<(Option<Trusted<Worker>>, ScriptThreadEventCategory, Box<dyn TaskBox>, Option<PipelineId>, TaskSourceName)>;
fn from_queued_task(
queued_task: (Option<Trusted<Worker>>, ScriptThreadEventCategory, Box<dyn TaskBox>, Option<PipelineId>, TaskSourceName),
) -> Self;
fn inactive_msg() -> Self;
fn wake_up_msg() -> Self;
fn is_wake_up(&self) -> bool;
}
Expand description
Defining the operations used to convert from a msg T to a QueuedTask.
Required Methods§
fn task_source_name(&self) -> Option<&TaskSourceName>
fn pipeline_id(&self) -> Option<PipelineId>
fn into_queued_task( self, ) -> Option<(Option<Trusted<Worker>>, ScriptThreadEventCategory, Box<dyn TaskBox>, Option<PipelineId>, TaskSourceName)>
fn from_queued_task( queued_task: (Option<Trusted<Worker>>, ScriptThreadEventCategory, Box<dyn TaskBox>, Option<PipelineId>, TaskSourceName), ) -> Self
fn inactive_msg() -> Self
fn wake_up_msg() -> Self
fn is_wake_up(&self) -> bool
Object Safety§
This trait is not object safe.