pub struct TagByteError(pub u8, pub u8);Expand description
Tag error contains expected and found bytes
Tuple Fields§
§0: u8§1: u8Trait Implementations§
Source§impl Clone for TagByteError
impl Clone for TagByteError
Source§fn clone(&self) -> TagByteError
fn clone(&self) -> TagByteError
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 TagByteError
impl Debug for TagByteError
Source§impl Display for TagByteError
impl Display for TagByteError
Source§impl Error for TagByteError
impl Error for TagByteError
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<TagByteError> for Error
impl From<TagByteError> for Error
Source§fn from(value: TagByteError) -> Self
fn from(value: TagByteError) -> Self
Converts to this type from the input type.
Source§impl From<TagByteError> for PktLineError
impl From<TagByteError> for PktLineError
Source§fn from(value: TagByteError) -> Self
fn from(value: TagByteError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TagByteError
impl PartialEq for TagByteError
impl Eq for TagByteError
impl StructuralPartialEq for TagByteError
Auto Trait Implementations§
impl Freeze for TagByteError
impl RefUnwindSafe for TagByteError
impl Send for TagByteError
impl Sync for TagByteError
impl Unpin for TagByteError
impl UnwindSafe for TagByteError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more