pub struct Output<T> {
pub generation: u64,
pub value: T,
}Expand description
One response from the worker, tagged with the generation of the request that produced it.
Fields§
§generation: u64Generation number of the request.
value: TThe worker’s response.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Output<T>where
T: Freeze,
impl<T> RefUnwindSafe for Output<T>where
T: RefUnwindSafe,
impl<T> Send for Output<T>where
T: Send,
impl<T> Sync for Output<T>where
T: Sync,
impl<T> Unpin for Output<T>where
T: Unpin,
impl<T> UnsafeUnpin for Output<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Output<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