pub enum LibResolvError {
InteriorNul(NulError),
Resolver(ResolverError),
NotSrv,
AnswerTooLarge,
}
Expand description
Errors encountered by LibResolv
.
Variants§
InteriorNul(NulError)
Rust -> C string conversion errors.
Resolver(ResolverError)
SRV resolver errors.
NotSrv
Tried to parse non-SRV record as SRV.
AnswerTooLarge
DNS answer larger than allowed by RFC.
Trait Implementations§
Source§impl Debug for LibResolvError
impl Debug for LibResolvError
Source§impl Display for LibResolvError
impl Display for LibResolvError
Source§impl Error for LibResolvError
impl Error for LibResolvError
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<NulError> for LibResolvError
impl From<NulError> for LibResolvError
Source§impl PartialEq for LibResolvError
impl PartialEq for LibResolvError
impl Eq for LibResolvError
impl StructuralPartialEq for LibResolvError
Auto Trait Implementations§
impl Freeze for LibResolvError
impl RefUnwindSafe for LibResolvError
impl Send for LibResolvError
impl Sync for LibResolvError
impl Unpin for LibResolvError
impl UnwindSafe for LibResolvError
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