pub enum TrySendRecvError<M> {
NoReply,
Closed(M),
Full(M),
}Expand description
Error returned when using the IntoRecv trait.
This error combines failures in sending and receiving.
Variants§
Trait Implementations§
Source§impl<M: Clone> Clone for TrySendRecvError<M>
impl<M: Clone> Clone for TrySendRecvError<M>
Source§fn clone(&self) -> TrySendRecvError<M>
fn clone(&self) -> TrySendRecvError<M>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M: Debug> Debug for TrySendRecvError<M>
impl<M: Debug> Debug for TrySendRecvError<M>
Source§impl<M> Error for TrySendRecvError<M>
impl<M> Error for TrySendRecvError<M>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<M: PartialEq> PartialEq for TrySendRecvError<M>
impl<M: PartialEq> PartialEq for TrySendRecvError<M>
Source§fn eq(&self, other: &TrySendRecvError<M>) -> bool
fn eq(&self, other: &TrySendRecvError<M>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<M: Copy> Copy for TrySendRecvError<M>
impl<M: Eq> Eq for TrySendRecvError<M>
impl<M> StructuralPartialEq for TrySendRecvError<M>
Auto Trait Implementations§
impl<M> Freeze for TrySendRecvError<M>where
M: Freeze,
impl<M> RefUnwindSafe for TrySendRecvError<M>where
M: RefUnwindSafe,
impl<M> Send for TrySendRecvError<M>where
M: Send,
impl<M> Sync for TrySendRecvError<M>where
M: Sync,
impl<M> Unpin for TrySendRecvError<M>where
M: Unpin,
impl<M> UnsafeUnpin for TrySendRecvError<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for TrySendRecvError<M>where
M: 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