pub struct Return<T = ()>(/* private fields */);Expand description
The return value produced by an async coroutine.
This wrapper insured that Yielder is owned by the async body of gen function.
[Yielder::return_] is used to create this value.
Auto Trait Implementations§
impl<T> Freeze for Return<T>where
T: Freeze,
impl<T> RefUnwindSafe for Return<T>where
T: RefUnwindSafe,
impl<T> Send for Return<T>where
T: Send,
impl<T> Sync for Return<T>where
T: Sync,
impl<T> Unpin for Return<T>where
T: Unpin,
impl<T> UnsafeUnpin for Return<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Return<T>where
T: 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