pub enum DnsError {
ShortBuf,
InvalidMessage,
}Variants§
Trait Implementations§
Source§impl<E> From<DnsError> for DnsIoError<E>
impl<E> From<DnsError> for DnsIoError<E>
Source§impl From<ParseError> for DnsError
impl From<ParseError> for DnsError
Source§fn from(_: ParseError) -> Self
fn from(_: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ShortMessage> for DnsError
impl From<ShortMessage> for DnsError
Source§fn from(_: ShortMessage) -> Self
fn from(_: ShortMessage) -> Self
Converts to this type from the input type.
impl Copy for DnsError
impl Eq for DnsError
impl StructuralPartialEq for DnsError
Auto Trait Implementations§
impl Freeze for DnsError
impl RefUnwindSafe for DnsError
impl Send for DnsError
impl Sync for DnsError
impl Unpin for DnsError
impl UnwindSafe for DnsError
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§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.