Struct embedded_svc::storage::StorageCache
source · [−]pub struct StorageCache<T: Storage>(_, _);
Implementations
Trait Implementations
sourceimpl<T: Storage> Storage for StorageCache<T>
impl<T: Storage> Storage for StorageCache<T>
fn contains(&self, key: impl AsRef<str>) -> Result<bool, Self::Error>
fn remove(&mut self, key: impl AsRef<str>) -> Result<bool, Self::Error>
fn get_raw(&self, key: impl AsRef<str>) -> Result<Option<Vec<u8>>, Self::Error>
fn put_raw(
&mut self,
key: impl AsRef<str>,
value: impl Into<Vec<u8>>
) -> Result<bool, Self::Error>
fn len(&self, key: impl AsRef<str>) -> Result<Option<usize>, Self::Error>
fn get<T: DeserializeOwned>(
&self,
key: impl AsRef<str>
) -> Result<Option<T>, Self::Error>
fn put(
&mut self,
key: impl AsRef<str>,
value: &impl Serialize
) -> Result<bool, Self::Error>
Auto Trait Implementations
impl<T> !RefUnwindSafe for StorageCache<T>
impl<T> Send for StorageCache<T> where
T: Send,
impl<T> !Sync for StorageCache<T>
impl<T> Unpin for StorageCache<T> where
T: Unpin,
impl<T> UnwindSafe for StorageCache<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more