pub struct InProcessCacheBackend { /* private fields */ }Expand description
In-process default backend - no network involvement, state lives in a single lock-free map. Equivalent to the pre-Phase-G behavior.
Implementations§
Trait Implementations§
Source§impl BurnCacheBackend for InProcessCacheBackend
impl BurnCacheBackend for InProcessCacheBackend
Source§fn fetch(&self, hash: &[u8; 32]) -> Result<Option<String>>
fn fetch(&self, hash: &[u8; 32]) -> Result<Option<String>>
Look up the source for
hash. Ok(None) means “not in this
backend” - BurnCache then expects the caller to supply the
source via register(source). Err(_) is treated the same as
Ok(None) in the hot path - backend errors must never block
registration of a locally-available source.Source§impl Default for InProcessCacheBackend
impl Default for InProcessCacheBackend
Source§fn default() -> InProcessCacheBackend
fn default() -> InProcessCacheBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InProcessCacheBackend
impl !RefUnwindSafe for InProcessCacheBackend
impl !UnwindSafe for InProcessCacheBackend
impl Send for InProcessCacheBackend
impl Sync for InProcessCacheBackend
impl Unpin for InProcessCacheBackend
impl UnsafeUnpin for InProcessCacheBackend
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