pub struct UnexpectedSize {
pub name: &'static str,
pub expected: usize,
pub got: usize,
}Fields§
§name: &'static str§expected: usize§got: usizeTrait Implementations§
Source§impl Clone for UnexpectedSize
impl Clone for UnexpectedSize
Source§fn clone(&self) -> UnexpectedSize
fn clone(&self) -> UnexpectedSize
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 moreSource§impl Debug for UnexpectedSize
impl Debug for UnexpectedSize
Source§impl Display for UnexpectedSize
impl Display for UnexpectedSize
Source§impl Error for UnexpectedSize
impl Error for UnexpectedSize
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()
Source§impl From<UnexpectedSize> for OptionParseError
impl From<UnexpectedSize> for OptionParseError
Source§fn from(source: UnexpectedSize) -> Self
fn from(source: UnexpectedSize) -> Self
Converts to this type from the input type.
Source§impl From<UnexpectedSize> for PcapNgParseError
impl From<UnexpectedSize> for PcapNgParseError
Source§fn from(source: UnexpectedSize) -> Self
fn from(source: UnexpectedSize) -> Self
Converts to this type from the input type.
Source§impl From<UnexpectedSize> for PcapParseError
impl From<UnexpectedSize> for PcapParseError
Source§fn from(source: UnexpectedSize) -> Self
fn from(source: UnexpectedSize) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnexpectedSize
impl PartialEq for UnexpectedSize
impl Copy for UnexpectedSize
impl Eq for UnexpectedSize
impl StructuralPartialEq for UnexpectedSize
Auto Trait Implementations§
impl Freeze for UnexpectedSize
impl RefUnwindSafe for UnexpectedSize
impl Send for UnexpectedSize
impl Sync for UnexpectedSize
impl Unpin for UnexpectedSize
impl UnwindSafe for UnexpectedSize
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