pub struct Layout {
pub dir: PathBuf,
pub spec: GroupLayout,
/* private fields */
}Fields§
§dir: PathBuf§spec: GroupLayoutImplementations§
Source§impl Layout
impl Layout
pub fn create(dir: &Path, spec: GroupLayout) -> Result<Self>
Sourcepub fn open(dir: &Path, spec: GroupLayout) -> Result<Self>
pub fn open(dir: &Path, spec: GroupLayout) -> Result<Self>
2026-09-25: Open an existing layout. A missing or undersized layer file is an error.
Sourcepub fn fd(&self, layer: u32) -> RawFd
pub fn fd(&self, layer: u32) -> RawFd
2026-09-25: Raw fd of a layer file, for IoUringBackend and
PosixBackend::drop_pagecache.
Sourcepub fn file(&self, layer: u32) -> &File
pub fn file(&self, layer: u32) -> &File
2026-09-25: The layer file, for PosixBackend’s positional I/O; the only
accessor on Windows.
pub fn offset(&self, key: GroupKey) -> u64
pub fn group_bytes(&self) -> u64
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnwindSafe for Layout
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