pub struct ChunkDescriptor {
pub offset: u64,
pub length: usize,
pub index: usize,
pub total_chunks: usize,
pub is_last: bool,
}Expand description
Descriptor for a data chunk.
Fields§
§offset: u64Offset in bytes from the start of the data
length: usizeLength of the chunk in bytes
index: usizeChunk index
total_chunks: usizeTotal number of chunks
is_last: boolWhether this is the last chunk
Implementations§
Trait Implementations§
Source§impl Clone for ChunkDescriptor
impl Clone for ChunkDescriptor
Source§fn clone(&self) -> ChunkDescriptor
fn clone(&self) -> ChunkDescriptor
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 ChunkDescriptor
impl RefUnwindSafe for ChunkDescriptor
impl Send for ChunkDescriptor
impl Sync for ChunkDescriptor
impl Unpin for ChunkDescriptor
impl UnsafeUnpin for ChunkDescriptor
impl UnwindSafe for ChunkDescriptor
Blanket Implementations§
impl<T> Allocation for T
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