Skip to main content

HasTaskId

Trait HasTaskId 

Source
pub trait HasTaskId {
    // Required method
    fn task_id(&self) -> TaskId;
}
Expand description

Represents an object that has a task id

Required Methods§

Source

fn task_id(&self) -> TaskId

Gets the task id

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HasTaskId for Box<dyn FullTask>

Source§

fn task_id(&self) -> TaskId

Source§

impl<E: ExecutableTask> HasTaskId for Arc<RwLock<E>>

Source§

fn task_id(&self) -> TaskId

Implementors§

Source§

impl HasTaskId for AnyTaskHandle

Source§

impl<T: 'static + Task + Send + Debug> HasTaskId for Executable<T>

Source§

impl<T: Task + Send + Sync + Debug + 'static> HasTaskId for TaskHandle<T>