pub struct MemoryS3Store;Implementations§
Source§impl MemoryS3Store
impl MemoryS3Store
Trait Implementations§
Source§impl Default for MemoryS3Store
impl Default for MemoryS3Store
Source§impl S3Store for MemoryS3Store
impl S3Store for MemoryS3Store
fn load(&self) -> StoreResult<S3State>
fn put_bucket_meta(&self, _bucket: &str, _meta: &BucketMeta) -> StoreResult<()>
fn put_bucket_subresource( &self, _bucket: &str, _kind: BucketSubresource, _payload: &str, ) -> StoreResult<()>
fn delete_bucket_subresource( &self, _bucket: &str, _kind: BucketSubresource, ) -> StoreResult<()>
fn delete_bucket(&self, _bucket: &str) -> StoreResult<()>
fn put_object( &self, _bucket: &str, _key: &str, _version: Option<&str>, body: BodySource, _meta: &ObjectMeta, ) -> StoreResult<BodyRef>
fn put_object_meta( &self, _bucket: &str, _key: &str, _version: Option<&str>, _meta: &ObjectMeta, ) -> StoreResult<()>
fn delete_object( &self, _bucket: &str, _key: &str, _version: Option<&str>, ) -> StoreResult<()>
fn open_object_body(&self, body: &BodyRef) -> StoreResult<Bytes>
fn mpu_create( &self, _bucket: &str, _upload_id: &str, _init: &MpuInit, ) -> StoreResult<()>
Source§fn mpu_put_part(
&self,
_bucket: &str,
_upload_id: &str,
_part_number: u32,
body: BodySource,
_etag: &str,
) -> StoreResult<BodyRef>
fn mpu_put_part( &self, _bucket: &str, _upload_id: &str, _part_number: u32, body: BodySource, _etag: &str, ) -> StoreResult<BodyRef>
Persist a multipart-upload part body. Returns the
BodyRef the
service should keep in its in-memory part map: BodyRef::Disk
for disk-backed stores (so subsequent reads stream from the
.bin file instead of holding the part in RAM), or
BodyRef::Memory for memory-mode stores.fn mpu_abort(&self, _bucket: &str, _upload_id: &str) -> StoreResult<()>
fn mpu_complete( &self, _bucket: &str, _upload_id: &str, _final_key: &str, _version: Option<&str>, _meta: &ObjectMeta, ) -> StoreResult<BodyRef>
Source§fn spool_dir(&self) -> Option<PathBuf>
fn spool_dir(&self) -> Option<PathBuf>
Where the streaming dispatch path should spool large request
bodies to disk before handing them to
Self::put_object /
Self::mpu_put_part. Returning Some keeps the spool file on
the same filesystem as the final destination so rename(2) is a
metadata-only move; returning None means “use the system temp
dir, the store will read the file back into RAM and unlink it”.Auto Trait Implementations§
impl Freeze for MemoryS3Store
impl RefUnwindSafe for MemoryS3Store
impl Send for MemoryS3Store
impl Sync for MemoryS3Store
impl Unpin for MemoryS3Store
impl UnsafeUnpin for MemoryS3Store
impl UnwindSafe for MemoryS3Store
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