Enum domain::bits::name::FromStrError [−][src]
pub enum FromStrError { UnexpectedEnd, EmptyLabel, LongLabel, IllegalEscape, IllegalCharacter, IllegalBinary, RelativeName, LongName, }
Variants
UnexpectedEnd
The string ended when there should have been more characters.
This most likely happens inside escape sequences and quoting.
EmptyLabel
An empty label was encountered.
LongLabel
A domain name label has more than 63 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.
IllegalBinary
An illegal binary label sequence was encountered.
RelativeName
A relative name was encountered.
LongName
The name has more than 255 characters.
Trait Implementations
impl Clone for FromStrError
[src]
impl Clone for FromStrError
fn clone(&self) -> FromStrError
[src]
fn clone(&self) -> FromStrError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for FromStrError
[src]
impl Debug for FromStrError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for FromStrError
[src]
impl Error for FromStrError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for FromStrError
[src]
impl Display for FromStrError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<FromStrError> for SyntaxError
[src]
impl From<FromStrError> for SyntaxError
fn from(err: FromStrError) -> SyntaxError
[src]
fn from(err: FromStrError) -> SyntaxError
Performs the conversion.
impl From<FromStrError> for Error
[src]
impl From<FromStrError> for Error
fn from(_: FromStrError) -> Error
[src]
fn from(_: FromStrError) -> Error
Performs the conversion.
Auto Trait Implementations
impl Send for FromStrError
impl Send for FromStrError
impl Sync for FromStrError
impl Sync for FromStrError