pub struct ProgressiveChunk {
pub index: usize,
pub data: Vec<u8>,
pub size: usize,
pub is_final: bool,
}Expand description
A chunk of progressively loaded data
Fields§
§index: usizeChunk index within the file
data: Vec<u8>Data for this chunk
size: usizeActual size of this chunk (may be less than chunk_size for last chunk)
is_final: boolWhether this chunk is the final chunk in the file
Trait Implementations§
Source§impl Clone for ProgressiveChunk
impl Clone for ProgressiveChunk
Source§fn clone(&self) -> ProgressiveChunk
fn clone(&self) -> ProgressiveChunk
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 ProgressiveChunk
impl RefUnwindSafe for ProgressiveChunk
impl Send for ProgressiveChunk
impl Sync for ProgressiveChunk
impl Unpin for ProgressiveChunk
impl UnwindSafe for ProgressiveChunk
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