pub struct Slots { /* private fields */ }Expand description
A slot is keyed coarsely, by what a node is with its volatile values left out; a hit also needs the value’s full key, so a coarse slot costs a miss and never a wrong buffer.
Implementations§
Source§impl Slots
impl Slots
pub fn holding(max_bytes: u64) -> Slots
pub fn get( &self, slot: Hash, key: Hash, node: &str, expected: Expected, ) -> Option<Entry>
pub fn put( &self, slot: Hash, key: Hash, payload: &Payload, traces: &[FilterTrace], label: Option<&Label>, ) -> Put
pub fn held_bytes(&self) -> u64
pub fn max_bytes(&self) -> u64
pub fn slots(&self) -> usize
pub fn clear(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Slots
impl RefUnwindSafe for Slots
impl Send for Slots
impl Sync for Slots
impl Unpin for Slots
impl UnsafeUnpin for Slots
impl UnwindSafe for Slots
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