pub struct AssetChunk {
pub transfer_id: TransferId,
pub index: u32,
pub data: Vec<u8>,
pub hash: [u8; 32],
}Expand description
Outgoing chunk for transfer.
Fields§
§transfer_id: TransferIdTransfer ID.
index: u32Chunk index.
data: Vec<u8>Chunk data (possibly compressed).
hash: [u8; 32]BLAKE3 hash of this chunk.
Trait Implementations§
Source§impl Clone for AssetChunk
impl Clone for AssetChunk
Source§fn clone(&self) -> AssetChunk
fn clone(&self) -> AssetChunk
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 moreAuto Trait Implementations§
impl Freeze for AssetChunk
impl RefUnwindSafe for AssetChunk
impl Send for AssetChunk
impl Sync for AssetChunk
impl Unpin for AssetChunk
impl UnwindSafe for AssetChunk
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