pub enum MismatchKind {
Missing,
WrongSize,
Extra,
UnsafePath,
V1Hash,
V2Hash,
}Expand description
Payload mismatch category.
Variants§
Missing
Expected path does not exist.
WrongSize
Expected path has a different byte length.
Extra
Payload contains an unrelated file.
UnsafePath
Path crosses a symlink or otherwise escapes safe mapping.
V1Hash
V1 SHA-1 piece data differs.
V2Hash
V2 SHA-256 file Merkle root differs.
Trait Implementations§
Source§impl Clone for MismatchKind
impl Clone for MismatchKind
Source§fn clone(&self) -> MismatchKind
fn clone(&self) -> MismatchKind
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 MismatchKind
impl Debug for MismatchKind
Source§impl Ord for MismatchKind
impl Ord for MismatchKind
Source§fn cmp(&self, other: &MismatchKind) -> Ordering
fn cmp(&self, other: &MismatchKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MismatchKind
impl PartialEq for MismatchKind
Source§impl PartialOrd for MismatchKind
impl PartialOrd for MismatchKind
impl Copy for MismatchKind
impl Eq for MismatchKind
impl StructuralPartialEq for MismatchKind
Auto Trait Implementations§
impl Freeze for MismatchKind
impl RefUnwindSafe for MismatchKind
impl Send for MismatchKind
impl Sync for MismatchKind
impl Unpin for MismatchKind
impl UnwindSafe for MismatchKind
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