pub enum RecvResult<T> {
Ok(T),
Empty,
Disconnected,
}
Expand description
The result of trying to receive a message.
Variants§
Implementations§
Source§impl<T> RecvResult<T>
impl<T> RecvResult<T>
Trait Implementations§
Source§impl<T: Clone> Clone for RecvResult<T>
impl<T: Clone> Clone for RecvResult<T>
Source§fn clone(&self) -> RecvResult<T>
fn clone(&self) -> RecvResult<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for RecvResult<T>
impl<T: Debug> Debug for RecvResult<T>
Source§impl<T: Hash> Hash for RecvResult<T>
impl<T: Hash> Hash for RecvResult<T>
Source§impl<T: Ord> Ord for RecvResult<T>
impl<T: Ord> Ord for RecvResult<T>
Source§fn cmp(&self, other: &RecvResult<T>) -> Ordering
fn cmp(&self, other: &RecvResult<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for RecvResult<T>
impl<T: PartialEq> PartialEq for RecvResult<T>
Source§impl<T: PartialOrd> PartialOrd for RecvResult<T>
impl<T: PartialOrd> PartialOrd for RecvResult<T>
impl<T: Copy> Copy for RecvResult<T>
impl<T: Eq> Eq for RecvResult<T>
impl<T> StructuralPartialEq for RecvResult<T>
Auto Trait Implementations§
impl<T> Freeze for RecvResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for RecvResult<T>where
T: RefUnwindSafe,
impl<T> Send for RecvResult<T>where
T: Send,
impl<T> Sync for RecvResult<T>where
T: Sync,
impl<T> Unpin for RecvResult<T>where
T: Unpin,
impl<T> UnwindSafe for RecvResult<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