pub struct OperandCache(/* private fields */);Expand description
Peer operands received over connected sessions, most recently used first,
at most capacity of them. Clones share one cache: a Lace hands its cache
to every connected operation it runs. Entries are never persisted,
admitted, observed, or exposed to policy.
Implementations§
Source§impl OperandCache
impl OperandCache
Sourcepub const DEFAULT_ENTRIES: usize = 32
pub const DEFAULT_ENTRIES: usize = 32
The capacity of a Lace’s cache unless configured otherwise.
Sourcepub fn set_capacity(&self, capacity: usize)
pub fn set_capacity(&self, capacity: usize)
Change the capacity, dropping the least recently used entries beyond it.
Trait Implementations§
Source§impl Clone for OperandCache
impl Clone for OperandCache
Source§fn clone(&self) -> OperandCache
fn clone(&self) -> OperandCache
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 OperandCache
impl Debug for OperandCache
Auto Trait Implementations§
impl Freeze for OperandCache
impl RefUnwindSafe for OperandCache
impl Send for OperandCache
impl Sync for OperandCache
impl Unpin for OperandCache
impl UnsafeUnpin for OperandCache
impl UnwindSafe for OperandCache
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