Trait vin_core::TaskActor

source ·
pub trait TaskActor: Task {
    fn start<'async_trait, Id>(
        self,
        id: Id
    ) -> Pin<Box<dyn Future<Output = Arc<TaskCloseHandle>> + Send + 'async_trait>>
    where
        Self: Sized + 'async_trait,
        Id: 'async_trait + Into<ActorId> + Send
; }
Expand description

Actor trait that all generic (non-specialized) actors must implement.

Required Methods§

Starts the task actor.

Implementors§