Trait backstage::actor::Actor [−][src]
pub trait Actor<H: AknShutdown<Self> + 'static>: StartActor<H> + Name { fn spawn<T>(task: T) -> JoinHandle<T::Output>
where
T: Future + Send + 'static,
T::Output: Send + 'static, { ... } fn sleep(duration: Duration) -> Sleep { ... } fn sleep_until(deadline: Instant) -> Sleep { ... } fn yield_now() -> YieldNowⓘ { ... } }
Provided methods
fn spawn<T>(task: T) -> JoinHandle<T::Output> where
T: Future + Send + 'static,
T::Output: Send + 'static,
[src]
T: Future + Send + 'static,
T::Output: Send + 'static,