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.

Implementations

impl<StaticT> Capturer<StaticT>[src]

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

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.