pub enum RelativeDnameError {
BadLabel(LabelTypeError),
CompressedName,
ShortData,
LongName,
AbsoluteName,
}Expand description
An error happened while creating a domain name from octets.
Variants§
BadLabel(LabelTypeError)
A bad label was encountered.
CompressedName
A compressed name was encountered.
ShortData
The data ended before the end of a label.
LongName
The domain name was longer than 255 octets.
AbsoluteName
The root label was encountered.
Trait Implementations§
Source§impl Clone for RelativeDnameError
impl Clone for RelativeDnameError
Source§fn clone(&self) -> RelativeDnameError
fn clone(&self) -> RelativeDnameError
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 RelativeDnameError
impl Debug for RelativeDnameError
Source§impl Display for RelativeDnameError
impl Display for RelativeDnameError
Source§impl Fail for RelativeDnameError
impl Fail for RelativeDnameError
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 RelativeDnameError
impl From<LabelTypeError> for RelativeDnameError
Source§fn from(err: LabelTypeError) -> Self
fn from(err: LabelTypeError) -> Self
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 RelativeDnameError
impl PartialEq for RelativeDnameError
impl Copy for RelativeDnameError
impl Eq for RelativeDnameError
impl StructuralPartialEq for RelativeDnameError
Auto Trait Implementations§
impl Freeze for RelativeDnameError
impl RefUnwindSafe for RelativeDnameError
impl Send for RelativeDnameError
impl Sync for RelativeDnameError
impl Unpin for RelativeDnameError
impl UnwindSafe for RelativeDnameError
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