pub enum DecodeError {
NotEnoughData,
MalformedMessage,
}
Expand description
Possible reasons why a message could not be decoded at a particular time.
Variants§
NotEnoughData
There is not enough data available to reconstruct a message. This does not indicate an irrecoverable problem, it just means that not enough data has been taken of the wire yet and that the operation should be retried once more data comes in.
MalformedMessage
The message is malformed in some way. Once this is encountered, the peer that sent it is disconnected.
Trait Implementations§
Source§impl Debug for DecodeError
impl Debug for DecodeError
Source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
impl Eq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl Freeze for DecodeError
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
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