pub enum OptionValueError {
TooShort,
TooLong,
StringConversion(FromUtf8Error),
UriParsing(UriParsingError),
IllegalValue,
}
Variants§
TooShort
Provided value for option is too short.
TooLong
Provided value for option is too long.
StringConversion(FromUtf8Error)
A string value could not be converted to UTF-8.
UriParsing(UriParsingError)
URI encoded in message could not be parsed.
IllegalValue
Option has an illegal value.
Trait Implementations§
Source§impl Clone for OptionValueError
impl Clone for OptionValueError
Source§fn clone(&self) -> OptionValueError
fn clone(&self) -> OptionValueError
Returns a copy 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 OptionValueError
impl Debug for OptionValueError
Source§impl Display for OptionValueError
impl Display for OptionValueError
Source§impl Error for OptionValueError
impl Error for OptionValueError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<FromUtf8Error> for OptionValueError
impl From<FromUtf8Error> for OptionValueError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<UriParsingError> for OptionValueError
impl From<UriParsingError> for OptionValueError
Source§fn from(source: UriParsingError) -> Self
fn from(source: UriParsingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OptionValueError
impl PartialEq for OptionValueError
impl Eq for OptionValueError
impl StructuralPartialEq for OptionValueError
Auto Trait Implementations§
impl Freeze for OptionValueError
impl RefUnwindSafe for OptionValueError
impl Send for OptionValueError
impl Sync for OptionValueError
impl Unpin for OptionValueError
impl UnwindSafe for OptionValueError
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