pub struct StoreInstance<'a> { /* private fields */ }Expand description
A wrapper around Store for a specific NamespaceId
Trait Implementations§
Source§impl<'a> Debug for StoreInstance<'a>
impl<'a> Debug for StoreInstance<'a>
Source§impl DownloadPolicyStore for StoreInstance<'_>
impl DownloadPolicyStore for StoreInstance<'_>
Source§fn get_download_policy(
&mut self,
namespace: &NamespaceId,
) -> Result<DownloadPolicy>
fn get_download_policy( &mut self, namespace: &NamespaceId, ) -> Result<DownloadPolicy>
Get the download policy for a document.
Source§impl PublicKeyStore for StoreInstance<'_>
impl PublicKeyStore for StoreInstance<'_>
Source§fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, SignatureError>
fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, SignatureError>
Convert a byte array into a [
VerifyingKey]. Read moreSource§fn namespace_key(
&self,
bytes: &NamespaceId,
) -> Result<NamespacePublicKey, SignatureError>
fn namespace_key( &self, bytes: &NamespaceId, ) -> Result<NamespacePublicKey, SignatureError>
Auto Trait Implementations§
impl<'a> Freeze for StoreInstance<'a>
impl<'a> !RefUnwindSafe for StoreInstance<'a>
impl<'a> Send for StoreInstance<'a>
impl<'a> Sync for StoreInstance<'a>
impl<'a> Unpin for StoreInstance<'a>
impl<'a> !UnwindSafe for StoreInstance<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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