Enum sc_utils::mpsc::TryRecvError
pub enum TryRecvError {
Empty,
Closed,
}
Expand description
An error returned from [Receiver::try_recv()
].
Variants§
Implementations§
Trait Implementations§
§impl Clone for TryRecvError
impl Clone for TryRecvError
§fn clone(&self) -> TryRecvError
fn clone(&self) -> TryRecvError
Returns a copy 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 more§impl Debug for TryRecvError
impl Debug for TryRecvError
§impl Display for TryRecvError
impl Display for TryRecvError
§impl Error for TryRecvError
impl Error for TryRecvError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl PartialEq<TryRecvError> for TryRecvError
impl PartialEq<TryRecvError> for TryRecvError
§fn eq(&self, other: &TryRecvError) -> bool
fn eq(&self, other: &TryRecvError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TryRecvError
impl Eq for TryRecvError
impl StructuralEq for TryRecvError
impl StructuralPartialEq for TryRecvError
Auto Trait Implementations§
impl RefUnwindSafe for TryRecvError
impl Send for TryRecvError
impl Sync for TryRecvError
impl Unpin for TryRecvError
impl UnwindSafe for TryRecvError
Blanket Implementations§
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read more§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.