pub struct InvalidInstruction {
pub actual: u8,
pub expected: u8,
}Expand description
The received message has an invalid or unexpected instruction value.
Fields§
§actual: u8The actual instruction ID.
expected: u8The expected instruction id.
Implementations§
Trait Implementations§
Source§impl Clone for InvalidInstruction
impl Clone for InvalidInstruction
Source§fn clone(&self) -> InvalidInstruction
fn clone(&self) -> InvalidInstruction
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 InvalidInstruction
impl Debug for InvalidInstruction
Source§impl Display for InvalidInstruction
impl Display for InvalidInstruction
Source§impl Error for InvalidInstruction
impl Error for InvalidInstruction
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<InvalidInstruction> for InvalidMessage
impl From<InvalidInstruction> for InvalidMessage
Source§fn from(other: InvalidInstruction) -> Self
fn from(other: InvalidInstruction) -> Self
Converts to this type from the input type.
Source§impl From<InvalidInstruction> for ReadError
impl From<InvalidInstruction> for ReadError
Source§fn from(other: InvalidInstruction) -> Self
fn from(other: InvalidInstruction) -> Self
Converts to this type from the input type.
Source§impl From<InvalidInstruction> for TransferError
impl From<InvalidInstruction> for TransferError
Source§fn from(other: InvalidInstruction) -> Self
fn from(other: InvalidInstruction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvalidInstruction
impl PartialEq for InvalidInstruction
impl Eq for InvalidInstruction
impl StructuralPartialEq for InvalidInstruction
Auto Trait Implementations§
impl Freeze for InvalidInstruction
impl RefUnwindSafe for InvalidInstruction
impl Send for InvalidInstruction
impl Sync for InvalidInstruction
impl Unpin for InvalidInstruction
impl UnwindSafe for InvalidInstruction
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