Struct LengthError
pub struct LengthError { /* private fields */ }Expand description
Error returned when a serialized protocol value has the wrong length.
Implementations§
§impl LengthError
impl LengthError
Trait Implementations§
§impl Clone for LengthError
impl Clone for LengthError
§fn clone(&self) -> LengthError
fn clone(&self) -> LengthError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for LengthError
impl Debug for LengthError
§impl Display for LengthError
impl Display for LengthError
§impl Error for LengthError
impl Error for LengthError
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 PartialEq for LengthError
impl PartialEq for LengthError
impl Copy for LengthError
impl Eq for LengthError
impl StructuralPartialEq for LengthError
Auto Trait Implementations§
impl Freeze for LengthError
impl RefUnwindSafe for LengthError
impl Send for LengthError
impl Sync for LengthError
impl Unpin for LengthError
impl UnsafeUnpin for LengthError
impl UnwindSafe for LengthError
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