Struct escher::Capturer[][src]

pub struct Capturer<T> { /* fields omitted */ }

An instance of Capturer is given to the closure passed to Escher::new and is used to capture a reference from the async stack.


impl<StaticT> Capturer<StaticT>[src]

pub async fn capture<T>(self, val: T) where
    T: RebindTo<'static, Out = StaticT>, 

Captures the passed value into a future that never resolves. Callers of this method must .await it in order for Escher to capture the value.

Auto Trait Implementations

impl<T> RefUnwindSafe for Capturer<T>

impl<T> Send for Capturer<T>

impl<T> Sync for Capturer<T>

impl<T> Unpin for Capturer<T>

impl<T> UnwindSafe for Capturer<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.