pub struct InvalidData { /* private fields */ }
Expand description
An error indicating user-provided data is invalid.
When decoding a packet this error can occur if the packet is invalid or corrupted, or if it has been truncated.
Trait Implementations§
Source§impl Debug for InvalidData
impl Debug for InvalidData
Source§impl Display for InvalidData
impl Display for InvalidData
Source§impl Error for InvalidData
impl Error for InvalidData
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl Freeze for InvalidData
impl RefUnwindSafe for InvalidData
impl Send for InvalidData
impl Sync for InvalidData
impl Unpin for InvalidData
impl UnwindSafe for InvalidData
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