pub enum ReadError {
SerializationError,
Disconnected,
Closed,
}Expand description
Errors raised when something went wrong while reading from a ReadStream.
Variants§
SerializationError
Message deserialization failed.
Disconnected
The channel or the TCP stream has been closed.
Closed
Stream is closed and can longer sends messages.
Trait Implementations§
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