pub struct ChunkSpan {
pub offset: u64,
pub len: usize,
pub last: bool,
}Expand description
One PackChunk of a download: len bytes at offset.
Fields§
§offset: u64Byte offset of the chunk in the pack.
len: usizeChunk length in bytes.
last: boolWhether this is the final chunk (PackChunk.last).
Trait Implementations§
impl Copy for ChunkSpan
impl Eq for ChunkSpan
impl StructuralPartialEq for ChunkSpan
Auto Trait Implementations§
impl Freeze for ChunkSpan
impl RefUnwindSafe for ChunkSpan
impl Send for ChunkSpan
impl Sync for ChunkSpan
impl Unpin for ChunkSpan
impl UnsafeUnpin for ChunkSpan
impl UnwindSafe for ChunkSpan
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