pub enum ParseMessageError {
EmptyMessage,
UnknownType(String),
MissingArgument(String),
TooManyArguments {
expected: usize,
actual: usize,
},
InvalidIntegerArgument {
argument: String,
value: String,
},
}
Variants§
Trait Implementations§
Source§impl Debug for ParseMessageError
impl Debug for ParseMessageError
Source§impl Display for ParseMessageError
impl Display for ParseMessageError
Source§impl Error for ParseMessageError
impl Error for ParseMessageError
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<ParseMessageError> for Response
impl From<ParseMessageError> for Response
Source§fn from(e: ParseMessageError) -> Response
fn from(e: ParseMessageError) -> Response
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseMessageError
impl RefUnwindSafe for ParseMessageError
impl Send for ParseMessageError
impl Sync for ParseMessageError
impl Unpin for ParseMessageError
impl UnwindSafe for ParseMessageError
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