Enum domain::base::name::DnameError
source · pub enum DnameError {
BadLabel(LabelTypeError),
CompressedName,
LongName,
RelativeName,
TrailingData,
ShortInput,
}
Expand description
A domain name wasn’t encoded correctly.
Variants§
BadLabel(LabelTypeError)
The encoding contained an unknown or disallowed label type.
CompressedName
The encoding contained a compression pointer.
LongName
The name was longer than 255 octets.
RelativeName
The name did not end with the root label.
TrailingData
There was more data after the root label was encountered.
ShortInput
The input ended in the middle of a label.
Trait Implementations§
source§impl Clone for DnameError
impl Clone for DnameError
source§fn clone(&self) -> DnameError
fn clone(&self) -> DnameError
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 DnameError
impl Debug for DnameError
source§impl Display for DnameError
impl Display for DnameError
source§impl Error for DnameError
impl Error for DnameError
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<DnameError> for FormError
impl From<DnameError> for FormError
source§fn from(err: DnameError) -> FormError
fn from(err: DnameError) -> FormError
Converts to this type from the input type.
source§impl From<DnameError> for ParseError
impl From<DnameError> for ParseError
source§fn from(err: DnameError) -> ParseError
fn from(err: DnameError) -> ParseError
Converts to this type from the input type.
source§impl From<LabelTypeError> for DnameError
impl From<LabelTypeError> for DnameError
source§fn from(err: LabelTypeError) -> DnameError
fn from(err: LabelTypeError) -> DnameError
Converts to this type from the input type.
source§impl From<SplitLabelError> for DnameError
impl From<SplitLabelError> for DnameError
source§fn from(err: SplitLabelError) -> DnameError
fn from(err: SplitLabelError) -> DnameError
Converts to this type from the input type.
source§impl PartialEq for DnameError
impl PartialEq for DnameError
impl Copy for DnameError
impl Eq for DnameError
impl StructuralPartialEq for DnameError
Auto Trait Implementations§
impl Freeze for DnameError
impl RefUnwindSafe for DnameError
impl Send for DnameError
impl Sync for DnameError
impl Unpin for DnameError
impl UnwindSafe for DnameError
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.