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

Notable traits for YieldNow

impl Future for YieldNow type Output = ();
{ ... } }

Provided methods

fn spawn<T>(task: T) -> JoinHandle<T::Output> where
    T: Future + Send + 'static,
    T::Output: Send + 'static, 
[src]

fn sleep(duration: Duration) -> Sleep[src]

fn sleep_until(deadline: Instant) -> Sleep[src]

fn yield_now() -> YieldNow

Notable traits for YieldNow

impl Future for YieldNow type Output = ();
[src]

Loading content...

Implementors

impl<T: Name + EventLoop<H> + Init<H> + Terminating<H>, H: Send + 'static + AknShutdown<Self>> Actor<H> for T[src]

Loading content...