pub enum SpillMode {
Disk,
Memory,
}Expand description
Where overflow output goes when it exceeds the limit.
This is a runtime choice, distinct from the compile-time localfs
feature: a localfs-built kernel can still be told to truncate in memory.
A build without localfs always behaves as SpillMode::Memory regardless
of this setting, since disk I/O is unavailable.
Variants§
Disk
Write overflow to a disk spill file under paths::spill_dir() and keep a
head+tail preview in the result (the message carries the file path).
Requires the localfs feature. This is the default.
Auto-overridden to Memory at kernel construction when
the VFS mount is NoLocal (memory-only) — such a kernel has no host
filesystem to spill to. See Kernel::assemble.
Memory
Truncate in memory to head+tail only — no disk I/O, no recoverable file.
For runtime read-only kernels (e.g. kaibo) that must never touch the host
filesystem even when localfs is compiled in.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.