pub enum ReliableClientDecodeError {
BadMagic,
UnknownKind(u8),
Truncated {
needed: usize,
available: usize,
},
TrailingBytes(usize),
}Expand description
Reliable client frame decode error.
Variants§
BadMagic
Frame magic did not match.
UnknownKind(u8)
Frame kind byte is unknown.
Truncated
Frame ended before all fields were available.
TrailingBytes(usize)
Frame had trailing bytes after a complete payload.
Trait Implementations§
Source§impl Clone for ReliableClientDecodeError
impl Clone for ReliableClientDecodeError
Source§fn clone(&self) -> ReliableClientDecodeError
fn clone(&self) -> ReliableClientDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReliableClientDecodeError
Source§impl Debug for ReliableClientDecodeError
impl Debug for ReliableClientDecodeError
Source§impl Display for ReliableClientDecodeError
impl Display for ReliableClientDecodeError
impl Eq for ReliableClientDecodeError
Source§impl Error for ReliableClientDecodeError
impl Error for ReliableClientDecodeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for ReliableClientDecodeError
Auto Trait Implementations§
impl Freeze for ReliableClientDecodeError
impl RefUnwindSafe for ReliableClientDecodeError
impl Send for ReliableClientDecodeError
impl Sync for ReliableClientDecodeError
impl Unpin for ReliableClientDecodeError
impl UnsafeUnpin for ReliableClientDecodeError
impl UnwindSafe for ReliableClientDecodeError
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