pub struct V1HashResult { /* private fields */ }Expand description
Ordered SHA-1 piece hashes and hashing metrics.
Implementations§
Source§impl V1HashResult
impl V1HashResult
Sourcepub fn piece_count(&self) -> usize
pub fn piece_count(&self) -> usize
Returns the number of completed pieces.
Sourcepub const fn total_bytes(&self) -> u64
pub const fn total_bytes(&self) -> u64
Returns total payload bytes hashed.
Sourcepub fn concatenated_pieces(&self) -> Vec<u8> ⓘ
pub fn concatenated_pieces(&self) -> Vec<u8> ⓘ
Returns piece hashes concatenated for the v1 pieces field.
Trait Implementations§
Source§impl Clone for V1HashResult
impl Clone for V1HashResult
Source§fn clone(&self) -> V1HashResult
fn clone(&self) -> V1HashResult
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 V1HashResult
impl Debug for V1HashResult
Source§impl PartialEq for V1HashResult
impl PartialEq for V1HashResult
impl Eq for V1HashResult
impl StructuralPartialEq for V1HashResult
Auto Trait Implementations§
impl Freeze for V1HashResult
impl RefUnwindSafe for V1HashResult
impl Send for V1HashResult
impl Sync for V1HashResult
impl Unpin for V1HashResult
impl UnwindSafe for V1HashResult
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