[][src]Trait drone_core::fib::ThrFiberClosure

pub trait ThrFiberClosure: ThrToken {
    pub fn add_fn<F, R>(self, f: F)
    where
        F: FnMut() -> FiberState<(), R>,
        F: Send + 'static,
        R: ReturnNone
, { ... }
pub fn add_once<F>(self, f: F)
    where
        F: FnOnce(),
        F: Unpin + Send + 'static
, { ... } }

Extends ThrToken types with add_fn and add_once methods.

Provided methods

pub fn add_fn<F, R>(self, f: F) where
    F: FnMut() -> FiberState<(), R>,
    F: Send + 'static,
    R: ReturnNone, 
[src]

Adds a fiber for the closure f to the fiber chain.

pub fn add_once<F>(self, f: F) where
    F: FnOnce(),
    F: Unpin + Send + 'static, 
[src]

Adds a fiber for the closure f to the fiber chain.

Loading content...

Implementors

impl<T: ThrToken> ThrFiberClosure for T[src]

Loading content...