Struct escher::Capturer [−][src]
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]
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,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,