pub struct NullCs;Expand description
A no-op content store — disables caching entirely at zero pipeline cost.
Trait Implementations§
Source§impl ContentStore for NullCs
impl ContentStore for NullCs
Source§async fn get(&self, _: &Interest) -> Option<CsEntry>
async fn get(&self, _: &Interest) -> Option<CsEntry>
Look up a Data packet matching
interest.
Honours MustBeFresh and CanBePrefix selectors.Source§async fn insert(&self, _: Bytes, _: Arc<Name>, _: CsMeta) -> InsertResult
async fn insert(&self, _: Bytes, _: Arc<Name>, _: CsMeta) -> InsertResult
Store a Data packet. May evict least-recently-used entries to make room.
Source§fn capacity(&self) -> CsCapacity
fn capacity(&self) -> CsCapacity
Current capacity configuration.
Source§fn variant_name(&self) -> &str
fn variant_name(&self) -> &str
Human-readable name of this CS implementation (e.g. “lru”, “sharded-lru”).
Source§fn current_bytes(&self) -> usize
fn current_bytes(&self) -> usize
Total bytes currently used.
Source§fn set_capacity(&self, _max_bytes: usize)
fn set_capacity(&self, _max_bytes: usize)
Update the maximum byte capacity at runtime.
Auto Trait Implementations§
impl Freeze for NullCs
impl RefUnwindSafe for NullCs
impl Send for NullCs
impl Sync for NullCs
impl Unpin for NullCs
impl UnwindSafe for NullCs
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