pub struct InMemoryAttachmentStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl AttachmentStore for InMemoryAttachmentStore
impl AttachmentStore for InMemoryAttachmentStore
fn put<'life0, 'async_trait>(
&'life0 self,
bytes: Vec<u8>,
meta: AttachmentCreateMeta,
) -> Pin<Box<dyn Future<Output = Result<AttachmentRef, AttachmentStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 AttachmentId,
) -> Pin<Box<dyn Future<Output = Result<StoredAttachment, AttachmentStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn persistence(&self) -> AttachmentStorePersistence
Source§fn pending_manifest_commit_ids(&self) -> Vec<AttachmentId>
fn pending_manifest_commit_ids(&self) -> Vec<AttachmentId>
Attachment refs written by this store that still need their
write-ahead manifest rows stamped by the next runtime commit. Read more
Source§fn mark_manifest_committed(&self, _ids: &[AttachmentId])
fn mark_manifest_committed(&self, _ids: &[AttachmentId])
Clear attachment refs that were stamped committed by a successful
runtime commit.
Source§impl Default for InMemoryAttachmentStore
impl Default for InMemoryAttachmentStore
Source§fn default() -> InMemoryAttachmentStore
fn default() -> InMemoryAttachmentStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryAttachmentStore
impl RefUnwindSafe for InMemoryAttachmentStore
impl Send for InMemoryAttachmentStore
impl Sync for InMemoryAttachmentStore
impl Unpin for InMemoryAttachmentStore
impl UnsafeUnpin for InMemoryAttachmentStore
impl UnwindSafe for InMemoryAttachmentStore
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