pub struct EncryptedStore<S, K> { /* private fields */ }Implementations§
Source§impl<S, K> EncryptedStore<S, K>
impl<S, K> EncryptedStore<S, K>
Trait Implementations§
Source§impl<S: Clone, K: Clone> Clone for EncryptedStore<S, K>
impl<S: Clone, K: Clone> Clone for EncryptedStore<S, K>
Source§fn clone(&self) -> EncryptedStore<S, K>
fn clone(&self) -> EncryptedStore<S, K>
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<S: ExternalStore, K: Key> ExternalStore for EncryptedStore<S, K>
impl<S: ExternalStore, K: Key> ExternalStore for EncryptedStore<S, K>
type Id = <S as ExternalStore>::Id
async fn save_data( &self, data: &[u8], refs: &[Self::Id], wh: WithHash<'_, impl ToOutput>, ) -> Result<Self::Id>
async fn contains_data( &self, data: &[u8], refs: &[Self::Id], wh: WithHash<'_, impl Send + Sync + ToOutput>, ) -> Result<bool>
async fn contains(&self, id: &Self::Id) -> Result<bool>
async fn fetch(&self, id: &Self::Id) -> Result<Vec<u8>>
fn store_point<T>(
&self,
fetch: impl SingularFetch<T = T> + 'static,
) -> impl RainbowFuture<T = Self::Id>where
T: Traversible,
Self: PartialEq,
fn store_object<T>(&self, object: T) -> impl RainbowFuture<T = Self::Id>where
T: Traversible,
Self: PartialEq,
fn load_extra<T, E>(&self, id: &Self::Id, extra: E) -> impl RainbowFuture<T = T>
fn load<T>(&self, id: &Self::Id) -> impl RainbowFuture<T = T>where
T: ParseSlice + Tagged,
Source§impl<S: PartialEq, K: PartialEq> PartialEq for EncryptedStore<S, K>
impl<S: PartialEq, K: PartialEq> PartialEq for EncryptedStore<S, K>
Source§fn eq(&self, other: &EncryptedStore<S, K>) -> bool
fn eq(&self, other: &EncryptedStore<S, K>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<S, K> StructuralPartialEq for EncryptedStore<S, K>
Auto Trait Implementations§
impl<S, K> Freeze for EncryptedStore<S, K>
impl<S, K> RefUnwindSafe for EncryptedStore<S, K>where
S: RefUnwindSafe,
K: RefUnwindSafe,
impl<S, K> Send for EncryptedStore<S, K>
impl<S, K> Sync for EncryptedStore<S, K>
impl<S, K> Unpin for EncryptedStore<S, K>
impl<S, K> UnsafeUnpin for EncryptedStore<S, K>where
S: UnsafeUnpin,
K: UnsafeUnpin,
impl<S, K> UnwindSafe for EncryptedStore<S, K>where
S: UnwindSafe,
K: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
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