pub struct PhysicalSpaceGuard { /* private fields */ }Implementations§
Source§impl PhysicalSpaceGuard
impl PhysicalSpaceGuard
pub fn new(minimum_free_bytes: u64) -> Result<Self>
Sourcepub fn has_refused(&self) -> bool
pub fn has_refused(&self) -> bool
Any admission failure ends this guarded writer; a fresh process may retry.
pub fn refusal_error(&self) -> Error
pub fn status(&self) -> String
pub fn install(&self, options: &mut EnvOpenOptions) -> Result<()>
Sourcepub fn create_dir_all(&self, path: &Path) -> Result<()>
pub fn create_dir_all(&self, path: &Path) -> Result<()>
Admit each namespace change on its actual parent filesystem. Existing directories require no admission, preserving duplicate/no-op operation.
pub fn admit_file(&self, file: &File, offset: u64, length: usize) -> Result<()>
pub fn write_all(&self, file: &mut File, data: &[u8]) -> Result<()>
Trait Implementations§
Source§impl Clone for PhysicalSpaceGuard
impl Clone for PhysicalSpaceGuard
Auto Trait Implementations§
impl !RefUnwindSafe for PhysicalSpaceGuard
impl !UnwindSafe for PhysicalSpaceGuard
impl Freeze for PhysicalSpaceGuard
impl Send for PhysicalSpaceGuard
impl Sync for PhysicalSpaceGuard
impl Unpin for PhysicalSpaceGuard
impl UnsafeUnpin for PhysicalSpaceGuard
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