pub struct FileHashInfo {
pub root: Id32,
pub num_blocks: u32,
pub num_pieces: u32,
}Expand description
File info needed to initialize the hash picker.
Fields§
§root: Id32Merkle root hash for this file.
num_blocks: u32Total number of 16 KiB blocks in the file.
num_pieces: u32Total number of pieces in the file.
Trait Implementations§
Source§impl Clone for FileHashInfo
impl Clone for FileHashInfo
Source§fn clone(&self) -> FileHashInfo
fn clone(&self) -> FileHashInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FileHashInfo
impl RefUnwindSafe for FileHashInfo
impl Send for FileHashInfo
impl Sync for FileHashInfo
impl Unpin for FileHashInfo
impl UnsafeUnpin for FileHashInfo
impl UnwindSafe for FileHashInfo
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