pub enum ReadError {
Failed {
bytes_read: u32,
},
Timeout {
timeout: u64,
},
Closed {
bytes_read: u32,
},
ChannelFull {
bytes_read: u32,
},
}
Expand description
Read operation errors
Variants§
Failed
Read operation had unexpectedly failed. Usually will happen when a channel was corrupted.
Timeout
Writer timeout had been detected. While the writer may resume pushing data in to the channel, most likely he had abandoned the channel.
Closed
Channel is closed no more data will be pushed into.
ChannelFull
Channel full. There is no more space available in this channel.
Implementations§
Trait Implementations§
Source§impl Ord for ReadError
impl Ord for ReadError
Source§impl PartialOrd for ReadError
impl PartialOrd for ReadError
impl Copy for ReadError
impl Eq for ReadError
impl StructuralPartialEq for ReadError
Auto Trait Implementations§
impl Freeze for ReadError
impl RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl UnwindSafe for ReadError
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