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
UnexpectedEnd
The string ended when there should have been more characters.
This most likely happens inside escape sequences and quoting.
LongString
A character string has more than 255 octets.
IllegalEscape
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.
IllegalCharacter
An illegal character was encountered.
Only printable ASCII characters are allowed.
Trait Implementations
impl Clone for FromStrError
[src]
fn clone(&self) -> FromStrError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for FromStrError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<PushError> for FromStrError
[src]
fn from(_: PushError) -> FromStrError
[src]
Performs the conversion.
impl Error for FromStrError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more