pub struct Chunk {
pub guid: String,
pub hash: u64,
pub sha_hash: Option<Vec<u8>>,
pub hash_type: Option<u8>,
pub uncompressed_size: Option<u32>,
pub data: Vec<u8>,
/* private fields */
}
Expand description
Struct holding data for downloaded chunks
Fields§
§guid: String
Guid of the chunk
hash: u64
Chunk Hash
sha_hash: Option<Vec<u8>>
Chunk sha hash
hash_type: Option<u8>
1 = rolling hash, 2 = sha hash, 3 = both
uncompressed_size: Option<u32>
Total chunk size
data: Vec<u8>
Chunk data
Implementations§
Trait Implementations§
impl StructuralPartialEq for Chunk
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnwindSafe for Chunk
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