pub struct DisabledReconstructionCache;Expand description
No-op reconstruction cache adapter.
Implementations§
Trait Implementations§
Source§impl AsyncReconstructionCache for DisabledReconstructionCache
impl AsyncReconstructionCache for DisabledReconstructionCache
Source§fn ready(&self) -> ReconstructionCacheFuture<'_, ()>
fn ready(&self) -> ReconstructionCacheFuture<'_, ()>
Verifies that the adapter is configured correctly and can serve requests.
Source§fn get<'operation>(
&'operation self,
_key: &'operation ReconstructionCacheKey,
) -> ReconstructionCacheFuture<'operation, Option<Vec<u8>>>
fn get<'operation>( &'operation self, _key: &'operation ReconstructionCacheKey, ) -> ReconstructionCacheFuture<'operation, Option<Vec<u8>>>
Loads one cached reconstruction payload.
Source§fn put<'operation>(
&'operation self,
_key: &'operation ReconstructionCacheKey,
_payload: &'operation [u8],
) -> ReconstructionCacheFuture<'operation, ()>
fn put<'operation>( &'operation self, _key: &'operation ReconstructionCacheKey, _payload: &'operation [u8], ) -> ReconstructionCacheFuture<'operation, ()>
Stores one reconstruction payload.
Source§fn delete<'operation>(
&'operation self,
_key: &'operation ReconstructionCacheKey,
) -> ReconstructionCacheFuture<'operation, bool>
fn delete<'operation>( &'operation self, _key: &'operation ReconstructionCacheKey, ) -> ReconstructionCacheFuture<'operation, bool>
Deletes one cached reconstruction payload.
Source§impl Clone for DisabledReconstructionCache
impl Clone for DisabledReconstructionCache
Source§fn clone(&self) -> DisabledReconstructionCache
fn clone(&self) -> DisabledReconstructionCache
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 DisabledReconstructionCache
impl Debug for DisabledReconstructionCache
Source§impl Default for DisabledReconstructionCache
impl Default for DisabledReconstructionCache
Source§fn default() -> DisabledReconstructionCache
fn default() -> DisabledReconstructionCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DisabledReconstructionCache
impl RefUnwindSafe for DisabledReconstructionCache
impl Send for DisabledReconstructionCache
impl Sync for DisabledReconstructionCache
impl Unpin for DisabledReconstructionCache
impl UnsafeUnpin for DisabledReconstructionCache
impl UnwindSafe for DisabledReconstructionCache
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