pub struct FileSpaceInfo {
pub strategy: FileSpaceStrategy,
pub persist: bool,
pub threshold: u64,
pub page_size: u64,
pub page_end_meta_threshold: u16,
pub eoa_pre_fsm: u64,
pub manager_addrs: Vec<u64>,
}Expand description
A parsed (or to-be-written) File Space Info message.
Fields§
§strategy: FileSpaceStrategyThe file-space management strategy.
persist: boolWhether free space is persisted to disk across file close (the manager addresses below are written only when this is set).
threshold: u64Smallest free-space section size the managers track.
page_size: u64File-space page size used for paged allocation.
page_end_meta_threshold: u16Page-end metadata threshold (paged allocation tuning).
eoa_pre_fsm: u64End-of-allocation address recorded before free-space manager metadata
was allocated; u64::MAX when free space is not persisted.
manager_addrs: Vec<u64>Free-space manager header addresses (present only when persist is
set); unused slots are u64::MAX. Followed to their on-disk FSHD/
FSSE blocks by File::persisted_free_space.
Trait Implementations§
Source§impl Clone for FileSpaceInfo
impl Clone for FileSpaceInfo
Source§fn clone(&self) -> FileSpaceInfo
fn clone(&self) -> FileSpaceInfo
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 FileSpaceInfo
impl Debug for FileSpaceInfo
impl Eq for FileSpaceInfo
Source§impl PartialEq for FileSpaceInfo
impl PartialEq for FileSpaceInfo
Source§fn eq(&self, other: &FileSpaceInfo) -> bool
fn eq(&self, other: &FileSpaceInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FileSpaceInfo
Auto Trait Implementations§
impl Freeze for FileSpaceInfo
impl RefUnwindSafe for FileSpaceInfo
impl Send for FileSpaceInfo
impl Sync for FileSpaceInfo
impl Unpin for FileSpaceInfo
impl UnsafeUnpin for FileSpaceInfo
impl UnwindSafe for FileSpaceInfo
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