Enum resolv::error::Error [] [src]

pub enum Error {
    Resolver(ResolutionError),
    CString(NulError),
    CStr(FromBytesWithNulError),
    ParseError,
    NoSuchSectionIndex(Sectionusize),
    UncompressError,
    Unterminated,
    WrongRRType,
    Utf8(Utf8Error),
    UnknownClass(u16),
}

Variants

Resolver(ResolutionError)

Name Resolution failed

CString(NulError)

String contains null bytes

CStr(FromBytesWithNulError)

Stirng contains null bytes

ParseError

Name service response does not parse

NoSuchSectionIndex(Sectionusize)

Section/Index is out of bounds

UncompressError

Uncompress Error

Unterminated

Result from dn_expand was not null terminated

WrongRRType

Wrong Resource record type

Utf8(Utf8Error)

String is not valid UTF-8

UnknownClass(u16)

Unknown class

Trait Implementations

impl Debug for Error
[src]

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

Formats the value using the given formatter.

impl From<ResolutionError> for Error
[src]

fn from(err: ResolutionError) -> Error

Performs the conversion.

impl From<Utf8Error> for Error
[src]

fn from(err: Utf8Error) -> Error

Performs the conversion.

impl From<FromBytesWithNulError> for Error
[src]

fn from(err: FromBytesWithNulError) -> Error

Performs the conversion.