pub enum SpillPolicy {
FailFast,
SpillToDisk {
directory: PathBuf,
},
}Expand description
Policy for handling memory-limit crossings.
Variants§
FailFast
Return an error immediately when memory usage exceeds the configured limit.
SpillToDisk
Allow the caller to spill buffered state to files in directory.
Trait Implementations§
Source§impl Clone for SpillPolicy
impl Clone for SpillPolicy
Source§fn clone(&self) -> SpillPolicy
fn clone(&self) -> SpillPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SpillPolicy
impl RefUnwindSafe for SpillPolicy
impl Send for SpillPolicy
impl Sync for SpillPolicy
impl Unpin for SpillPolicy
impl UnsafeUnpin for SpillPolicy
impl UnwindSafe for SpillPolicy
Blanket Implementations§
impl<T> Allocation for T
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