pub enum SplitLabelError {
Pointer(u16),
BadType(LabelTypeError),
ShortBuf,
}Expand description
An error happened while splitting a label from a bytes slice.
Variants§
Pointer(u16)
The label was a pointer to the given position.
BadType(LabelTypeError)
The label type was invalid.
ShortBuf
The bytes slice was too short.
Trait Implementations§
Source§impl Clone for SplitLabelError
impl Clone for SplitLabelError
Source§fn clone(&self) -> SplitLabelError
fn clone(&self) -> SplitLabelError
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 SplitLabelError
impl Debug for SplitLabelError
Source§impl Display for SplitLabelError
impl Display for SplitLabelError
Source§impl Fail for SplitLabelError
impl Fail for SplitLabelError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl From<LabelTypeError> for SplitLabelError
impl From<LabelTypeError> for SplitLabelError
Source§fn from(err: LabelTypeError) -> SplitLabelError
fn from(err: LabelTypeError) -> SplitLabelError
Converts to this type from the input type.
Source§impl From<ShortBuf> for SplitLabelError
impl From<ShortBuf> for SplitLabelError
Source§fn from(_: ShortBuf) -> SplitLabelError
fn from(_: ShortBuf) -> SplitLabelError
Converts to this type from the input type.
Source§impl From<SplitLabelError> for DnameParseError
impl From<SplitLabelError> for DnameParseError
Source§fn from(err: SplitLabelError) -> DnameParseError
fn from(err: SplitLabelError) -> DnameParseError
Converts to this type from the input type.
Source§impl From<SplitLabelError> for RelativeDnameError
impl From<SplitLabelError> for RelativeDnameError
Source§fn from(err: SplitLabelError) -> Self
fn from(err: SplitLabelError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SplitLabelError
impl PartialEq for SplitLabelError
impl Copy for SplitLabelError
impl Eq for SplitLabelError
impl StructuralPartialEq for SplitLabelError
Auto Trait Implementations§
impl Freeze for SplitLabelError
impl RefUnwindSafe for SplitLabelError
impl Send for SplitLabelError
impl Sync for SplitLabelError
impl Unpin for SplitLabelError
impl UnwindSafe for SplitLabelError
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