pub enum FromStrError {
ShortInput,
LongString,
BadEscape,
BadSymbol(Symbol),
}Expand description
An error happened when converting a Rust string to a DNS character string.
Variants§
ShortInput
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.
BadEscape
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.
BadSymbol(Symbol)
An illegal character was encountered.
Only printable ASCII characters are allowed.
Trait Implementations§
Source§impl Clone for FromStrError
impl Clone for FromStrError
Source§fn clone(&self) -> FromStrError
fn clone(&self) -> FromStrError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FromStrError
impl Debug for FromStrError
Source§impl Display for FromStrError
impl Display for FromStrError
Source§impl Fail for FromStrError
impl Fail for FromStrError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl From<BadSymbol> for FromStrError
impl From<BadSymbol> for FromStrError
Source§fn from(err: BadSymbol) -> FromStrError
fn from(err: BadSymbol) -> FromStrError
Converts to this type from the input type.
Source§impl From<PushError> for FromStrError
impl From<PushError> for FromStrError
Source§fn from(_: PushError) -> FromStrError
fn from(_: PushError) -> FromStrError
Converts to this type from the input type.
Source§impl From<SymbolError> for FromStrError
impl From<SymbolError> for FromStrError
Source§fn from(err: SymbolError) -> FromStrError
fn from(err: SymbolError) -> FromStrError
Converts to this type from the input type.
Source§impl PartialEq for FromStrError
impl PartialEq for FromStrError
impl Copy for FromStrError
impl Eq for FromStrError
impl StructuralPartialEq for FromStrError
Auto Trait Implementations§
impl Freeze for FromStrError
impl RefUnwindSafe for FromStrError
impl Send for FromStrError
impl Sync for FromStrError
impl Unpin for FromStrError
impl UnwindSafe for FromStrError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more