Struct capnp::capability::Promise
source · pub struct Promise<T, E> { /* private fields */ }
Expand description
A computation that might eventually resolve to a value of type T
or to an error
of type E
. Dropping the promise cancels the computation.
Implementations
Auto Trait Implementations
impl<T, E> RefUnwindSafe for Promise<T, E>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for Promise<T, E>where
E: Send,
T: Send,
impl<T, E> Sync for Promise<T, E>where
E: Sync,
T: Sync,
impl<T, E> Unpin for Promise<T, E>where
E: Unpin,
T: Unpin,
impl<T, E> UnwindSafe for Promise<T, E>where
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more