Enum trust_dns_server::authority::LookupError [−][src]
A query could not be fulfilled
Variants
A record at the same Name as the query exists, but not of the queried RecordType
ResponseCode(ResponseCode)
There was an error performing the lookup
Io(Error)
An underlying IO error occurred
Implementations
impl LookupError
[src]
pub fn as_name_exists_mut(&mut self) -> Option<()>
[src]
Optionally returns references to the inner fields if this is a LookupError::NameExists
, otherwise None
pub fn as_name_exists(&self) -> Option<()>
[src]
Optionally returns references to the inner fields if this is a LookupError::NameExists
, otherwise None
pub fn as_response_code_mut(&mut self) -> Option<&mut ResponseCode>
[src]
Optionally returns mutable references to the inner fields if this is a LookupError::ResponseCode
, otherwise None
pub fn as_response_code(&self) -> Option<&ResponseCode>
[src]
Optionally returns references to the inner fields if this is a LookupError::ResponseCode
, otherwise None
pub fn into_response_code(self) -> Result<ResponseCode, Self>
[src]
Returns the inner fields if this is a LookupError::ResponseCode
, otherwise returns back the enum in the Err
case of the result
pub fn as_io_mut(&mut self) -> Option<&mut Error>
[src]
Optionally returns mutable references to the inner fields if this is a LookupError::Io
, otherwise None
pub fn as_io(&self) -> Option<&Error>
[src]
Optionally returns references to the inner fields if this is a LookupError::Io
, otherwise None
pub fn into_io(self) -> Result<Error, Self>
[src]
Returns the inner fields if this is a LookupError::Io
, otherwise returns back the enum in the Err
case of the result
impl LookupError
[src]
pub fn for_name_exists() -> Self
[src]
Create a lookup error, specifying that a name exists at the location, but no matching RecordType
pub fn is_name_exists(&self) -> bool
[src]
True if other records exist at the same name, but not the searched for RecordType
pub fn is_nx_domain(&self) -> bool
[src]
This is a non-existent domain name
pub fn is_refused(&self) -> bool
[src]
This is a non-existent domain name
Trait Implementations
impl Debug for LookupError
[src]
impl Display for LookupError
[src]
impl Error for LookupError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Error> for LookupError
[src]
impl From<ResponseCode> for LookupError
[src]
fn from(code: ResponseCode) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for LookupError
impl Send for LookupError
impl Sync for LookupError
impl Unpin for LookupError
impl !UnwindSafe for LookupError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,