pub enum DnsIoError<E> {
DnsError(DnsError),
IoError(E),
}Variants§
Implementations§
Source§impl<E> DnsIoError<E>where
E: Error,
impl<E> DnsIoError<E>where
E: Error,
pub fn erase(&self) -> DnsIoError<ErrorKind>
Trait Implementations§
Source§impl<E: Clone> Clone for DnsIoError<E>
impl<E: Clone> Clone for DnsIoError<E>
Source§fn clone(&self) -> DnsIoError<E>
fn clone(&self) -> DnsIoError<E>
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<E: Debug> Debug for DnsIoError<E>
impl<E: Debug> Debug for DnsIoError<E>
Source§impl<E> Display for DnsIoError<E>where
E: Display,
impl<E> Display for DnsIoError<E>where
E: Display,
Source§impl<E> Error for DnsIoError<E>where
E: Error,
impl<E> Error for DnsIoError<E>where
E: Error,
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<E> From<DnsError> for DnsIoError<E>
impl<E> From<DnsError> for DnsIoError<E>
Source§impl<E: Hash> Hash for DnsIoError<E>
impl<E: Hash> Hash for DnsIoError<E>
Source§impl<E: PartialEq> PartialEq for DnsIoError<E>
impl<E: PartialEq> PartialEq for DnsIoError<E>
impl<E: Copy> Copy for DnsIoError<E>
impl<E: Eq> Eq for DnsIoError<E>
impl<E> StructuralPartialEq for DnsIoError<E>
Auto Trait Implementations§
impl<E> Freeze for DnsIoError<E>where
E: Freeze,
impl<E> RefUnwindSafe for DnsIoError<E>where
E: RefUnwindSafe,
impl<E> Send for DnsIoError<E>where
E: Send,
impl<E> Sync for DnsIoError<E>where
E: Sync,
impl<E> Unpin for DnsIoError<E>where
E: Unpin,
impl<E> UnwindSafe for DnsIoError<E>where
E: UnwindSafe,
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.