pub struct HashResult {
pub piece: u32,
pub passed: bool,
pub generation: u64,
}Expand description
Result of a hash verification.
Fields§
§piece: u32Piece index that was verified.
passed: boolWhether the hash matched.
generation: u64Generation counter (for staleness check by caller).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HashResult
impl RefUnwindSafe for HashResult
impl Send for HashResult
impl Sync for HashResult
impl Unpin for HashResult
impl UnsafeUnpin for HashResult
impl UnwindSafe for HashResult
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