pub struct CsEntry {
pub data: Bytes,
pub stale_at: u64,
pub name: Arc<Name>,
}Expand description
A cache entry: wire-format Data bytes plus derived metadata.
Storing wire bytes (not decoded Data) means CS hits produce send-ready
bytes with no re-encoding cost.
Fields§
§data: BytesWire-format Data packet.
stale_at: u64Expiry time (ns since Unix epoch). Derived from FreshnessPeriod.
name: Arc<Name>Name of the cached Data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CsEntry
impl RefUnwindSafe for CsEntry
impl Send for CsEntry
impl Sync for CsEntry
impl Unpin for CsEntry
impl UnwindSafe for CsEntry
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