pub enum WireError {
PayloadTooLarge,
SerdeError(Error),
UnknownPacketType,
FramingError,
}Expand description
Errors that can arise during wire-level encoding or decoding.
Variants§
PayloadTooLarge
Payload exceeded MAX_PAYLOAD_SIZE.
SerdeError(Error)
postcard serialization / deserialization failed; carries the underlying cause.
UnknownPacketType
A reserved or unknown packet type discriminant was received.
FramingError
The framing delimiter was encountered in an unexpected position.
Trait Implementations§
impl Eq for WireError
impl StructuralPartialEq for WireError
Auto Trait Implementations§
impl Freeze for WireError
impl RefUnwindSafe for WireError
impl Send for WireError
impl Sync for WireError
impl Unpin for WireError
impl UnsafeUnpin for WireError
impl UnwindSafe for WireError
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