pub struct LayoutManager { /* private fields */ }Expand description
Handles sector allocation for the CD image
Implementations§
Source§impl LayoutManager
impl LayoutManager
Sourcepub fn layout_files(
&mut self,
tree: &mut FileTree,
options: &CdOptions,
) -> CdResult<LayoutInfo>
pub fn layout_files( &mut self, tree: &mut FileTree, options: &CdOptions, ) -> CdResult<LayoutInfo>
Allocate sectors for file data and assign extents to all files
This is the core layout function that determines where each file’s data will be stored on disk. Both ISO and UDF will reference these same sectors.
Sourcepub fn allocate_udf_block(&mut self) -> u32
pub fn allocate_udf_block(&mut self) -> u32
Allocate a single sector within the UDF partition
Sourcepub fn next_unique_id(&mut self) -> u64
pub fn next_unique_id(&mut self) -> u64
Get the next available unique ID
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayoutManager
impl RefUnwindSafe for LayoutManager
impl Send for LayoutManager
impl Sync for LayoutManager
impl Unpin for LayoutManager
impl UnsafeUnpin for LayoutManager
impl UnwindSafe for LayoutManager
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