pub struct Sha1Hasher { /* private fields */ }Expand description
Incremental SHA-1 hasher for streaming piece verification.
Eliminates per-piece allocation by allowing callers to feed data in fixed-size chunks through a reusable buffer rather than reading the entire piece into memory at once.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sha1Hasher
impl RefUnwindSafe for Sha1Hasher
impl Send for Sha1Hasher
impl Sync for Sha1Hasher
impl Unpin for Sha1Hasher
impl UnsafeUnpin for Sha1Hasher
impl UnwindSafe for Sha1Hasher
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