Enum resolve::socket::Error [] [src]

pub enum Error {
    DecodeError(DecodeError),
    EncodeError(EncodeError),
    DnsError(DnsError),
    IoError(Error),
}

Represents an error in sending or receiving a DNS message.

Variants

DecodeError

Error decoding received data

EncodeError

Error encoding data to be sent

DnsError

Server responded with error message

IoError

Error generated by network operation

Methods

impl Error

fn is_timeout(&self) -> bool

Returns true if the error is the result of an operation having timed out.

Trait Implementations

impl Display for Error

fn fmt(&self, f: &mut Formatter) -> Result

impl From<DecodeError> for Error

fn from(err: DecodeError) -> Error

impl From<EncodeError> for Error

fn from(err: EncodeError) -> Error

impl From<DnsError> for Error

fn from(err: DnsError) -> Error

impl From<Error> for Error

fn from(err: Error) -> Error

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result