pub struct MemorixCacheItem<K, P, G, S, D, E> { /* private fields */ }
Implementations§
Source§impl<K: Serialize, P: Serialize + DeserializeOwned, G, S, D, E> MemorixCacheItem<K, P, G, S, D, E>
impl<K: Serialize, P: Serialize + DeserializeOwned, G, S, D, E> MemorixCacheItem<K, P, G, S, D, E>
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, E> MemorixCacheItem<K, P, G, S, D, E>
impl<K: Serialize, P: Serialize + DeserializeOwned, G: CanCacheGet, S, D, E> MemorixCacheItem<K, P, G, S, D, E>
Source§impl<K: Serialize, P: Serialize + DeserializeOwned, G, S: CanCacheSet, D, E> MemorixCacheItem<K, P, G, S, D, E>
impl<K: Serialize, P: Serialize + DeserializeOwned, G, S: CanCacheSet, D, E> MemorixCacheItem<K, P, G, S, D, E>
Source§impl<K: Serialize, P: Serialize + DeserializeOwned, G, S, D: CanCacheDelete, E> MemorixCacheItem<K, P, G, S, D, E>
impl<K: Serialize, P: Serialize + DeserializeOwned, G, S, D: CanCacheDelete, E> MemorixCacheItem<K, P, G, S, D, E>
Trait Implementations§
Auto Trait Implementations§
impl<K, P, G, S, D, E> Freeze for MemorixCacheItem<K, P, G, S, D, E>
impl<K, P, G, S, D, E> RefUnwindSafe for MemorixCacheItem<K, P, G, S, D, E>where
K: RefUnwindSafe,
P: RefUnwindSafe,
G: RefUnwindSafe,
S: RefUnwindSafe,
D: RefUnwindSafe,
E: RefUnwindSafe,
impl<K, P, G, S, D, E> Send for MemorixCacheItem<K, P, G, S, D, E>
impl<K, P, G, S, D, E> Sync for MemorixCacheItem<K, P, G, S, D, E>
impl<K, P, G, S, D, E> Unpin for MemorixCacheItem<K, P, G, S, D, E>
impl<K, P, G, S, D, E> UnwindSafe for MemorixCacheItem<K, P, G, S, D, E>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more