pub enum ReceiveError {
Empty,
Disconnected,
}
Expand description
The error returned by trying to receive a value.
Variants§
Empty
The channel is empty, more values are possible.
Disconnected
The channel is empty and the sending side of the channel is disconnected, which means that no more values are coming.
Trait Implementations§
Source§impl Clone for ReceiveError
impl Clone for ReceiveError
Source§fn clone(&self) -> ReceiveError
fn clone(&self) -> ReceiveError
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 Debug for ReceiveError
impl Debug for ReceiveError
Source§impl PartialEq for ReceiveError
impl PartialEq for ReceiveError
impl Copy for ReceiveError
impl Eq for ReceiveError
impl StructuralPartialEq for ReceiveError
Auto Trait Implementations§
impl Freeze for ReceiveError
impl RefUnwindSafe for ReceiveError
impl Send for ReceiveError
impl Sync for ReceiveError
impl Unpin for ReceiveError
impl UnwindSafe for ReceiveError
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