#[non_exhaustive]pub enum SpillMode {
Anonymous,
Named,
}Available on crate feature
fs only.Expand description
How spilled files are kept.
Anonymous (default) | Named | |
|---|---|---|
| Unix | unlinked right after creation | keeps its random name until dropped or persisted |
| Windows | delete-on-close, no sharing | deleted on drop |
| after a crash | nothing is left | leftovers are removed by sweep (0.5) |
persist | a copy | a hard link on the same file system, else a copy |
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Anonymous
The file has no name the moment it exists.
Named
The file keeps a random name in the store’s directory.
Trait Implementations§
impl Copy for SpillMode
impl Eq for SpillMode
impl StructuralPartialEq for SpillMode
Auto Trait Implementations§
impl Freeze for SpillMode
impl RefUnwindSafe for SpillMode
impl Send for SpillMode
impl Sync for SpillMode
impl Unpin for SpillMode
impl UnsafeUnpin for SpillMode
impl UnwindSafe for SpillMode
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