pub struct MemorixCacheItem<K, P, G, S, D> { /* private fields */ }
Implementations§
Source§impl<K: Serialize, P: Serialize + DeserializeOwned, G, S, D> MemorixCacheItem<K, P, G, S, D>
impl<K: Serialize, P: Serialize + DeserializeOwned, G, S, D> MemorixCacheItem<K, P, G, S, D>
pub fn new( memorix_base: MemorixBase, id: String, options: Option<MemorixCacheOptions>, ) -> Result<Self, Box<dyn Error + Sync + Send>>
pub fn key(&self, key: &K) -> Result<String, Box<dyn Error + Sync + Send>>
pub async fn extend( &mut self, key: &K, ) -> Result<(), Box<dyn Error + Sync + Send>>
Source§impl<K: Serialize, P: Serialize + DeserializeOwned, G: CanCacheGet, S, D> MemorixCacheItem<K, P, G, S, D>
impl<K: Serialize, P: Serialize + DeserializeOwned, G: CanCacheGet, S, D> MemorixCacheItem<K, P, G, S, D>
Source§impl<K: Serialize, P: Serialize + DeserializeOwned, G, S: CanCacheSet, D> MemorixCacheItem<K, P, G, S, D>
impl<K: Serialize, P: Serialize + DeserializeOwned, G, S: CanCacheSet, D> MemorixCacheItem<K, P, G, S, D>
Trait Implementations§
Auto Trait Implementations§
impl<K, P, G, S, D> Freeze for MemorixCacheItem<K, P, G, S, D>
impl<K, P, G, S, D> RefUnwindSafe for MemorixCacheItem<K, P, G, S, D>
impl<K, P, G, S, D> Send for MemorixCacheItem<K, P, G, S, D>
impl<K, P, G, S, D> Sync for MemorixCacheItem<K, P, G, S, D>
impl<K, P, G, S, D> Unpin for MemorixCacheItem<K, P, G, S, D>
impl<K, P, G, S, D> UnwindSafe for MemorixCacheItem<K, P, G, S, D>
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