pub struct NotificationTooShortError {
pub expected: usize,
pub actual: usize,
}Expand description
Reports that a notification does not contain its complete required payload.
Fields§
§expected: usizeMinimum number of bytes required for this notification type.
actual: usizeNumber of bytes present in the received notification.
Trait Implementations§
Source§impl Clone for NotificationTooShortError
impl Clone for NotificationTooShortError
Source§fn clone(&self) -> NotificationTooShortError
fn clone(&self) -> NotificationTooShortError
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 moreimpl Copy for NotificationTooShortError
Source§impl Debug for NotificationTooShortError
impl Debug for NotificationTooShortError
Source§impl Display for NotificationTooShortError
impl Display for NotificationTooShortError
impl Eq for NotificationTooShortError
Source§impl Error for NotificationTooShortError
impl Error for NotificationTooShortError
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<NotificationTooShortError> for DecodeResponseNotificationError
impl From<NotificationTooShortError> for DecodeResponseNotificationError
Source§fn from(source: NotificationTooShortError) -> Self
fn from(source: NotificationTooShortError) -> Self
Converts to this type from the input type.
Source§impl From<NotificationTooShortError> for DecodePositionNotificationError
impl From<NotificationTooShortError> for DecodePositionNotificationError
Source§fn from(source: NotificationTooShortError) -> Self
fn from(source: NotificationTooShortError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for NotificationTooShortError
Auto Trait Implementations§
impl Freeze for NotificationTooShortError
impl RefUnwindSafe for NotificationTooShortError
impl Send for NotificationTooShortError
impl Sync for NotificationTooShortError
impl Unpin for NotificationTooShortError
impl UnsafeUnpin for NotificationTooShortError
impl UnwindSafe for NotificationTooShortError
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