pub struct TrailerMismatch {
pub expected: Vec<u8>,
pub found: Vec<u8>,
}Expand description
Checksum at the end of bytes did not match a digest of the leading body.
Fields§
§expected: Vec<u8>Digest computed over the body (everything before the trailer).
found: Vec<u8>Trailing bytes found in bytes.
Trait Implementations§
Source§impl Clone for TrailerMismatch
impl Clone for TrailerMismatch
Source§impl Debug for TrailerMismatch
impl Debug for TrailerMismatch
Source§impl Display for TrailerMismatch
impl Display for TrailerMismatch
impl Eq for TrailerMismatch
Source§impl Error for TrailerMismatch
impl Error for TrailerMismatch
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 TrailerMismatch
impl PartialEq for TrailerMismatch
impl StructuralPartialEq for TrailerMismatch
Auto Trait Implementations§
impl Freeze for TrailerMismatch
impl RefUnwindSafe for TrailerMismatch
impl Send for TrailerMismatch
impl Sync for TrailerMismatch
impl Unpin for TrailerMismatch
impl UnsafeUnpin for TrailerMismatch
impl UnwindSafe for TrailerMismatch
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