pub struct ContentChunk {
pub path: LockboxPath,
pub file_offset: u64,
pub len: u64,
pub physical_offset: Option<u64>,
pub sparse: bool,
}Expand description
Metadata for one streamed content range.
Fields§
§path: LockboxPathLogical lockbox path containing this range.
file_offset: u64Byte offset within the logical file.
len: u64Number of logical bytes in the range.
physical_offset: Option<u64>Backing file offset when the chunk has physical storage.
sparse: boolWhether the range is a sparse zero-filled hole.
Trait Implementations§
Source§impl Clone for ContentChunk
impl Clone for ContentChunk
Source§fn clone(&self) -> ContentChunk
fn clone(&self) -> ContentChunk
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 ContentChunk
impl Debug for ContentChunk
impl Eq for ContentChunk
Source§impl PartialEq for ContentChunk
impl PartialEq for ContentChunk
impl StructuralPartialEq for ContentChunk
Auto Trait Implementations§
impl Freeze for ContentChunk
impl RefUnwindSafe for ContentChunk
impl Send for ContentChunk
impl Sync for ContentChunk
impl Unpin for ContentChunk
impl UnsafeUnpin for ContentChunk
impl UnwindSafe for ContentChunk
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