Enum trust_dns_server::authority::LookupError[][src]

pub enum LookupError {
    NameExists,
    ResponseCode(ResponseCode),
    Io(Error),
}

A query could not be fulfilled

Variants

NameExists

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]

impl From<Error> for LookupError[src]

impl From<ResponseCode> for LookupError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,