Enum dns_message_parser::LabelError
source · [−]pub enum LabelError {
Length(usize),
Empty,
}
Variants
Length(usize)
Empty
Trait Implementations
sourceimpl Debug for LabelError
impl Debug for LabelError
sourceimpl Display for LabelError
impl Display for LabelError
sourceimpl Error for LabelError
impl Error for LabelError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<LabelError> for DecodeError
impl From<LabelError> for DecodeError
sourcefn from(source: LabelError) -> Self
fn from(source: LabelError) -> Self
Converts to this type from the input type.
sourceimpl From<LabelError> for DomainNameError
impl From<LabelError> for DomainNameError
sourcefn from(source: LabelError) -> Self
fn from(source: LabelError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<LabelError> for LabelError
impl PartialEq<LabelError> for LabelError
sourcefn eq(&self, other: &LabelError) -> bool
fn eq(&self, other: &LabelError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LabelError) -> bool
fn ne(&self, other: &LabelError) -> bool
This method tests for !=
.
impl Eq for LabelError
impl StructuralEq for LabelError
impl StructuralPartialEq for LabelError
Auto Trait Implementations
impl RefUnwindSafe for LabelError
impl Send for LabelError
impl Sync for LabelError
impl Unpin for LabelError
impl UnwindSafe for LabelError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more