pub struct MemoryPressureLevelConfig {
pub background_task_period: Duration,
pub cache_size_limit: usize,
pub background_task_initial_delay: Duration,
}Fields§
§background_task_period: DurationThe period to wait between flushes, as well as perform other background maintenance tasks (e.g. purging caches).
cache_size_limit: usizeThe limit of cached nodes.
background_task_initial_delay: DurationThe initial delay before the background task runs. The background task has a longer initial delay to avoid running the task during boot.
Trait Implementations§
Source§impl Clone for MemoryPressureLevelConfig
impl Clone for MemoryPressureLevelConfig
Source§fn clone(&self) -> MemoryPressureLevelConfig
fn clone(&self) -> MemoryPressureLevelConfig
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 MemoryPressureLevelConfig
impl Debug for MemoryPressureLevelConfig
Source§impl Default for MemoryPressureLevelConfig
impl Default for MemoryPressureLevelConfig
impl Copy for MemoryPressureLevelConfig
Auto Trait Implementations§
impl Freeze for MemoryPressureLevelConfig
impl RefUnwindSafe for MemoryPressureLevelConfig
impl Send for MemoryPressureLevelConfig
impl Sync for MemoryPressureLevelConfig
impl Unpin for MemoryPressureLevelConfig
impl UnsafeUnpin for MemoryPressureLevelConfig
impl UnwindSafe for MemoryPressureLevelConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [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 more