#[non_exhaustive]pub enum Receive<T> {
Ready(T),
NeedInput,
EndOfStream,
}Expand description
What receive returned.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ready(T)
One output.
NeedInput
Nothing now; more input may be sent.
EndOfStream
Input ended and everything was drained. Stable.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Receive<T>where
T: Freeze,
impl<T> RefUnwindSafe for Receive<T>where
T: RefUnwindSafe,
impl<T> Send for Receive<T>where
T: Send,
impl<T> Sync for Receive<T>where
T: Sync,
impl<T> Unpin for Receive<T>where
T: Unpin,
impl<T> UnsafeUnpin for Receive<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Receive<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