pub enum Async<T, E> {
Ok(T),
Err(E),
Continue(Future<T, E>),
}Expand description
Asynchronous version of Result<T, E> that allows for future composition. Additional
macros are provided to work with both Async<T, E> and Result<T, E>.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, E> Freeze for Async<T, E>
impl<T, E> RefUnwindSafe for Async<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for Async<T, E>
impl<T, E> !Sync for Async<T, E>
impl<T, E> Unpin for Async<T, E>
impl<T, E> UnwindSafe for Async<T, E>where
T: UnwindSafe,
E: UnwindSafe,
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