pub struct GraphCacheLimits { /* private fields */ }Expand description
The retention ceilings one cache is bounded by.
There is no default. An editor, a continuous-integration process, and a batch consumer have different retention budgets, and a library that chose one implicitly would spend a host’s memory on its behalf. Zero disables retention for a category without disabling the computation behind it.
Implementations§
Source§impl GraphCacheLimits
impl GraphCacheLimits
Sourcepub fn new(
max_source_projections: u32,
max_exact_graphs: u32,
max_selected_indexes_per_graph: u32,
max_derived_products_per_graph: u32,
) -> Self
pub fn new( max_source_projections: u32, max_exact_graphs: u32, max_selected_indexes_per_graph: u32, max_derived_products_per_graph: u32, ) -> Self
Ceilings for the four retention categories.
Sourcepub fn max_source_projections(self) -> u32
pub fn max_source_projections(self) -> u32
How many source-unit projections may be retained.
Sourcepub fn max_exact_graphs(self) -> u32
pub fn max_exact_graphs(self) -> u32
How many exact graphs may be retained.
Sourcepub fn max_selected_indexes_per_graph(self) -> u32
pub fn max_selected_indexes_per_graph(self) -> u32
How many edge-selection index sets may be retained per cached graph.
Sourcepub fn max_derived_products_per_graph(self) -> u32
pub fn max_derived_products_per_graph(self) -> u32
How many derived products may be retained per cached graph.
Trait Implementations§
Source§impl Clone for GraphCacheLimits
impl Clone for GraphCacheLimits
impl Copy for GraphCacheLimits
Source§impl Debug for GraphCacheLimits
impl Debug for GraphCacheLimits
impl Eq for GraphCacheLimits
Source§impl PartialEq for GraphCacheLimits
impl PartialEq for GraphCacheLimits
impl StructuralPartialEq for GraphCacheLimits
Auto Trait Implementations§
impl Freeze for GraphCacheLimits
impl RefUnwindSafe for GraphCacheLimits
impl Send for GraphCacheLimits
impl Sync for GraphCacheLimits
impl Unpin for GraphCacheLimits
impl UnsafeUnpin for GraphCacheLimits
impl UnwindSafe for GraphCacheLimits
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