pub struct Observer<T> { /* private fields */ }
Expand description
A Future which is completed, once its associated event is resolved. See
AsyncEvents::output_of
.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Observer<T>
impl<T> RefUnwindSafe for Observer<T>
impl<T> Send for Observer<T>where
T: Send,
impl<T> Sync for Observer<T>where
T: Send,
impl<T> Unpin for Observer<T>
impl<T> UnwindSafe for Observer<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more