pub struct ChunkPartition {
pub info: PartitionInfo,
pub chunk_index: u8,
pub bytes_written: u64,
pub complete: bool,
}Expand description
Chunk partition for ISO storage
Fields§
§info: PartitionInfoPartition info
chunk_index: u8Chunk index (0 = first chunk)
bytes_written: u64Bytes written to this chunk
complete: boolWhether chunk is complete
Implementations§
Source§impl ChunkPartition
impl ChunkPartition
Sourcepub fn new(info: PartitionInfo, chunk_index: u8) -> Self
pub fn new(info: PartitionInfo, chunk_index: u8) -> Self
Create new chunk partition
Sourcepub fn data_start_lba(&self) -> u64
pub fn data_start_lba(&self) -> u64
Get data area start LBA (after FAT32 reserved + FAT tables) For a standard 4GB partition: ~8192 sectors reserved
Sourcepub fn max_data_size(&self) -> u64
pub fn max_data_size(&self) -> u64
Get maximum data size for this chunk
Trait Implementations§
Source§impl Clone for ChunkPartition
impl Clone for ChunkPartition
Source§fn clone(&self) -> ChunkPartition
fn clone(&self) -> ChunkPartition
Returns a copy 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 moreSource§impl Debug for ChunkPartition
impl Debug for ChunkPartition
Source§impl Default for ChunkPartition
impl Default for ChunkPartition
Source§fn default() -> ChunkPartition
fn default() -> ChunkPartition
Returns the “default value” for a type. Read more
impl Copy for ChunkPartition
Auto Trait Implementations§
impl Freeze for ChunkPartition
impl RefUnwindSafe for ChunkPartition
impl Send for ChunkPartition
impl Sync for ChunkPartition
impl Unpin for ChunkPartition
impl UnwindSafe for ChunkPartition
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