Enum sync_channel::Error
source · pub enum Error {
WouldBlock,
ChannelDisconnected,
}
Expand description
Error type for tracking different type of errors sender and receiver can encounter.
Variants§
WouldBlock
Occurs when a “try” operation would need to block to complete.
I.e. try_send
is performed on a full channel or try_receive
is
performed on an empty channel.
ChannelDisconnected
Occurs when one end of channel is dropped
Trait Implementations§
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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