pub enum CommandDecodeError {
TypeMismatch {
declared: String,
body: String,
},
MalformedPayload(String),
}Expand description
Why a CommandEnvelope did not yield a typed command body.
Variants§
TypeMismatch
The envelope’s command_type does not name the body’s variant.
MalformedPayload(String)
The payload is not a legal command body.
Trait Implementations§
Source§impl Clone for CommandDecodeError
impl Clone for CommandDecodeError
Source§fn clone(&self) -> CommandDecodeError
fn clone(&self) -> CommandDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommandDecodeError
impl Debug for CommandDecodeError
Source§impl Display for CommandDecodeError
impl Display for CommandDecodeError
impl Eq for CommandDecodeError
Source§impl Error for CommandDecodeError
impl Error for CommandDecodeError
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 PartialEq for CommandDecodeError
impl PartialEq for CommandDecodeError
impl StructuralPartialEq for CommandDecodeError
Auto Trait Implementations§
impl Freeze for CommandDecodeError
impl RefUnwindSafe for CommandDecodeError
impl Send for CommandDecodeError
impl Sync for CommandDecodeError
impl Unpin for CommandDecodeError
impl UnsafeUnpin for CommandDecodeError
impl UnwindSafe for CommandDecodeError
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