pub struct SpillConfig {
pub max_memory: usize,
pub spill_threshold: f64,
pub spill_dir: PathBuf,
pub target_after_spill: f64,
pub min_spill_size: usize,
pub access_decay: f64,
}Expand description
Configuration for the spill manager
Fields§
§max_memory: usizeMaximum memory limit in bytes
spill_threshold: f64Threshold (0.0-1.0) at which to start spilling
spill_dir: PathBufDirectory for spill files
target_after_spill: f64Target memory after spill (0.0-1.0)
min_spill_size: usizeMinimum segment size to consider for spilling (bytes)
access_decay: f64Access weight decay factor (0.0-1.0)
Implementations§
Source§impl SpillConfig
impl SpillConfig
Sourcepub fn new() -> SpillConfig
pub fn new() -> SpillConfig
Create a new config with reasonable defaults
Sourcepub fn max_memory(self, bytes: usize) -> SpillConfig
pub fn max_memory(self, bytes: usize) -> SpillConfig
Set maximum memory
Sourcepub fn spill_threshold(self, threshold: f64) -> SpillConfig
pub fn spill_threshold(self, threshold: f64) -> SpillConfig
Set spill threshold
Sourcepub fn spill_dir<P>(self, path: P) -> SpillConfig
pub fn spill_dir<P>(self, path: P) -> SpillConfig
Set spill directory
Sourcepub fn target_after_spill(self, target: f64) -> SpillConfig
pub fn target_after_spill(self, target: f64) -> SpillConfig
Set target memory after spill
Sourcepub fn min_spill_size(self, size: usize) -> SpillConfig
pub fn min_spill_size(self, size: usize) -> SpillConfig
Set minimum spill size
Trait Implementations§
Source§impl Clone for SpillConfig
impl Clone for SpillConfig
Source§fn clone(&self) -> SpillConfig
fn clone(&self) -> SpillConfig
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 moreSource§impl Debug for SpillConfig
impl Debug for SpillConfig
Source§impl Default for SpillConfig
impl Default for SpillConfig
Source§fn default() -> SpillConfig
fn default() -> SpillConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for SpillConfig
impl Freeze for SpillConfig
impl Move for SpillConfig
impl RefUnwindSafe for SpillConfig
impl Send for SpillConfigwhere
RawVecInner: Send,
impl Sync for SpillConfigwhere
RawVecInner: Sync,
impl Unpin for SpillConfig
impl UnsafeUnpin for SpillConfig
impl UnwindSafe for SpillConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request