pub struct V2FileAttr {
pub length: u64,
pub pieces_root: Option<Id32>,
}Expand description
Attributes of a single file in a v2 file tree.
Fields§
§length: u64File length in bytes.
pieces_root: Option<Id32>Merkle root of the file’s block hashes. None for empty files (length == 0).
Trait Implementations§
Source§impl Clone for V2FileAttr
impl Clone for V2FileAttr
Source§fn clone(&self) -> V2FileAttr
fn clone(&self) -> V2FileAttr
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 moreSource§impl Debug for V2FileAttr
impl Debug for V2FileAttr
Source§impl PartialEq for V2FileAttr
impl PartialEq for V2FileAttr
Source§fn eq(&self, other: &V2FileAttr) -> bool
fn eq(&self, other: &V2FileAttr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for V2FileAttr
impl StructuralPartialEq for V2FileAttr
Auto Trait Implementations§
impl Freeze for V2FileAttr
impl RefUnwindSafe for V2FileAttr
impl Send for V2FileAttr
impl Sync for V2FileAttr
impl Unpin for V2FileAttr
impl UnsafeUnpin for V2FileAttr
impl UnwindSafe for V2FileAttr
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