pub enum ParseIeee802_1QError {
UnexpectedBufferEnd(UnexpectedBufferEndError),
STagWithoutCTag,
}
Expand description
Error returned when parsing a IEEE802.1Q header.
Variants§
UnexpectedBufferEnd(UnexpectedBufferEndError)
The data buffer ended unexpectedly.
STagWithoutCTag
Found service tag without client tag (header is indicated to be double tagged but is not).
Trait Implementations§
source§impl Clone for ParseIeee802_1QError
impl Clone for ParseIeee802_1QError
source§fn clone(&self) -> ParseIeee802_1QError
fn clone(&self) -> ParseIeee802_1QError
Returns a copy 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 ParseIeee802_1QError
impl Debug for ParseIeee802_1QError
source§impl Display for ParseIeee802_1QError
impl Display for ParseIeee802_1QError
source§impl Error for ParseIeee802_1QError
impl Error for ParseIeee802_1QError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParseIeee802_1QError> for ParseNetworkDataError
impl From<ParseIeee802_1QError> for ParseNetworkDataError
source§fn from(value: ParseIeee802_1QError) -> Self
fn from(value: ParseIeee802_1QError) -> Self
Converts to this type from the input type.
source§impl From<UnexpectedBufferEndError> for ParseIeee802_1QError
impl From<UnexpectedBufferEndError> for ParseIeee802_1QError
source§fn from(value: UnexpectedBufferEndError) -> Self
fn from(value: UnexpectedBufferEndError) -> Self
Converts to this type from the input type.
source§impl Hash for ParseIeee802_1QError
impl Hash for ParseIeee802_1QError
source§impl Ord for ParseIeee802_1QError
impl Ord for ParseIeee802_1QError
source§fn cmp(&self, other: &ParseIeee802_1QError) -> Ordering
fn cmp(&self, other: &ParseIeee802_1QError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ParseIeee802_1QError
impl PartialEq for ParseIeee802_1QError
source§fn eq(&self, other: &ParseIeee802_1QError) -> bool
fn eq(&self, other: &ParseIeee802_1QError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ParseIeee802_1QError
impl PartialOrd for ParseIeee802_1QError
source§fn partial_cmp(&self, other: &ParseIeee802_1QError) -> Option<Ordering>
fn partial_cmp(&self, other: &ParseIeee802_1QError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ParseIeee802_1QError
impl Eq for ParseIeee802_1QError
impl StructuralPartialEq for ParseIeee802_1QError
Auto Trait Implementations§
impl Freeze for ParseIeee802_1QError
impl RefUnwindSafe for ParseIeee802_1QError
impl Send for ParseIeee802_1QError
impl Sync for ParseIeee802_1QError
impl Unpin for ParseIeee802_1QError
impl UnwindSafe for ParseIeee802_1QError
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