pub struct InMemoryStorageProvider { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for InMemoryStorageProvider
impl Clone for InMemoryStorageProvider
Source§fn clone(&self) -> InMemoryStorageProvider
fn clone(&self) -> InMemoryStorageProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for InMemoryStorageProvider
impl Default for InMemoryStorageProvider
Source§fn default() -> InMemoryStorageProvider
fn default() -> InMemoryStorageProvider
Returns the “default value” for a type. Read more
Source§impl StorageProvider for InMemoryStorageProvider
impl StorageProvider for InMemoryStorageProvider
async fn get_manifest(&self, project_id: &str) -> StorageResult<Option<Vec<u8>>>
async fn put_manifest( &self, project_id: &str, manifest_payload: &[u8], ) -> StorageResult<()>
async fn upload_blob(&self, hash: &str, data: Vec<u8>) -> StorageResult<()>
async fn download_blob(&self, hash: &str) -> StorageResult<Option<Vec<u8>>>
async fn create_invite( &self, user_id: &str, vault_id: &str, payload: Vec<u8>, ) -> StorageResult<()>
async fn get_invites( &self, user_id: &str, vault_id: &str, ) -> StorageResult<Vec<Vec<u8>>>
Auto Trait Implementations§
impl Freeze for InMemoryStorageProvider
impl !RefUnwindSafe for InMemoryStorageProvider
impl Send for InMemoryStorageProvider
impl Sync for InMemoryStorageProvider
impl Unpin for InMemoryStorageProvider
impl UnsafeUnpin for InMemoryStorageProvider
impl !UnwindSafe for InMemoryStorageProvider
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.