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