Enum domain::bits::name::FromStrError[][src]

pub enum FromStrError {
    UnexpectedEnd,
    EmptyLabel,
    LongLabel,
    IllegalEscape,
    IllegalCharacter,
    IllegalBinary,
    RelativeName,
    LongName,
}

Variants

The string ended when there should have been more characters.

This most likely happens inside escape sequences and quoting.

An empty label was encountered.

A domain name label has more than 63 octets.

An illegal escape sequence was encountered.

Escape sequences are a backslash character followed by either a three decimal digit sequence encoding a byte value or a single other printable ASCII character.

An illegal character was encountered.

Only printable ASCII characters are allowed.

An illegal binary label sequence was encountered.

A relative name was encountered.

The name has more than 255 characters.

Trait Implementations

impl Clone for FromStrError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for FromStrError
[src]

Formats the value using the given formatter. Read more

impl Error for FromStrError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl Display for FromStrError
[src]

Formats the value using the given formatter. Read more

impl From<FromStrError> for SyntaxError
[src]

Performs the conversion.

impl From<FromStrError> for Error
[src]

Performs the conversion.

Auto Trait Implementations