pub enum Error {
Io(Error),
Bincode(Error),
ReceivedMessageTooLarge,
SentMessageTooLarge,
ChecksumMismatch {
sent_checksum: u64,
computed_checksum: u64,
},
ProtocolVersionMismatch {
our_version: u64,
their_version: u64,
},
ChecksumHandshakeFailed {
checksum_value: u8,
},
Timeout,
ReadHalfDropped,
}
Expand description
Errors which can occur on an async-io-converse
connection.
Variants§
Io(Error)
Error from std::io
Bincode(Error)
Error from the bincode
crate
ReceivedMessageTooLarge
A message was received that exceeded the configured length limit
SentMessageTooLarge
A message was sent that exceeded the configured length limit
ChecksumMismatch
ProtocolVersionMismatch
ChecksumHandshakeFailed
Timeout
A reply wasn’t received within the timeout specified
ReadHalfDropped
The read half was dropped, crippling the ability to receive replies.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
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