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

pub enum FromStrError {
    UnexpectedEnd,
    LongString,
    IllegalEscape,
    IllegalCharacter,
}

An error happened when converting a Rust string to a DNS character string.

Variants

The string ended when there should have been more characters.

This most likely happens inside escape sequences and quoting.

A character string has more than 255 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.

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.

impl From<PushError> for FromStrError
[src]

Performs the conversion.

impl Error for FromStrError
[src]

A short description of the error. 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