#[non_exhaustive]pub struct CrcMismatch {
pub expected: u32,
pub actual: u32,
}Expand description
CRC32C checksum mismatch.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.expected: u32CRC value read from the wire.
actual: u32CRC value computed locally.
Trait Implementations§
Source§impl Clone for CrcMismatch
impl Clone for CrcMismatch
Source§fn clone(&self) -> CrcMismatch
fn clone(&self) -> CrcMismatch
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 CrcMismatch
Source§impl Debug for CrcMismatch
impl Debug for CrcMismatch
Source§impl Display for CrcMismatch
impl Display for CrcMismatch
impl Eq for CrcMismatch
Source§impl Error for CrcMismatch
impl Error for CrcMismatch
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<CrcMismatch> for ProtocolError
impl From<CrcMismatch> for ProtocolError
Source§fn from(source: CrcMismatch) -> Self
fn from(source: CrcMismatch) -> Self
Converts to this type from the input type.
Source§impl From<CrcMismatch> for RecordError
impl From<CrcMismatch> for RecordError
Source§fn from(err: CrcMismatch) -> Self
fn from(err: CrcMismatch) -> Self
Converts to this type from the input type.
Source§impl From<CrcMismatch> for RecordErrorKind
impl From<CrcMismatch> for RecordErrorKind
Source§fn from(source: CrcMismatch) -> Self
fn from(source: CrcMismatch) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CrcMismatch
impl PartialEq for CrcMismatch
Source§fn eq(&self, other: &CrcMismatch) -> bool
fn eq(&self, other: &CrcMismatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CrcMismatch
Auto Trait Implementations§
impl Freeze for CrcMismatch
impl RefUnwindSafe for CrcMismatch
impl Send for CrcMismatch
impl Sync for CrcMismatch
impl Unpin for CrcMismatch
impl UnsafeUnpin for CrcMismatch
impl UnwindSafe for CrcMismatch
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