pub enum InvalidArgument {
EmptyName,
NameContainsDelimiter,
NoDelimiter,
TooLong,
BadText,
}Expand description
Error to determine
Variants§
EmptyName
Argument had empty name.
NameContainsDelimiter
Argument name contained a delimiter (= or *).
NoDelimiter
Argument encoding did not contain a delimiter.
TooLong
Argument was too long to be encodeable.
BadText
Argument wasn’t valid printable ASCII, as specified in RFC8907 section 3.7.
Trait Implementations§
Source§impl Debug for InvalidArgument
impl Debug for InvalidArgument
Source§impl Display for InvalidArgument
impl Display for InvalidArgument
Source§impl Error for InvalidArgument
Available on crate feature std only.
impl Error for InvalidArgument
Available on crate feature
std only.1.30.0 · 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<InvalidArgument> for DeserializeError
impl From<InvalidArgument> for DeserializeError
Source§fn from(value: InvalidArgument) -> Self
fn from(value: InvalidArgument) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvalidArgument
impl PartialEq for InvalidArgument
impl Eq for InvalidArgument
impl StructuralPartialEq for InvalidArgument
Auto Trait Implementations§
impl Freeze for InvalidArgument
impl RefUnwindSafe for InvalidArgument
impl Send for InvalidArgument
impl Sync for InvalidArgument
impl Unpin for InvalidArgument
impl UnwindSafe for InvalidArgument
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