pub enum FileCleanup {
Manual,
Auto,
}Expand description
Cleanup behavior for memory-mapped files.
Variants§
Manual
Keep the file after all processes exit (manual cleanup required).
Auto
Automatically delete the file when all processes exit. On Unix: file is unlinked immediately (stays alive while mapped). On Windows: file is opened with FILE_FLAG_DELETE_ON_CLOSE.
Trait Implementations§
Source§impl Clone for FileCleanup
impl Clone for FileCleanup
Source§fn clone(&self) -> FileCleanup
fn clone(&self) -> FileCleanup
Returns a duplicate 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 FileCleanup
impl Debug for FileCleanup
Source§impl PartialEq for FileCleanup
impl PartialEq for FileCleanup
impl Copy for FileCleanup
impl Eq for FileCleanup
impl StructuralPartialEq for FileCleanup
Auto Trait Implementations§
impl Freeze for FileCleanup
impl RefUnwindSafe for FileCleanup
impl Send for FileCleanup
impl Sync for FileCleanup
impl Unpin for FileCleanup
impl UnwindSafe for FileCleanup
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