pub struct S3Store { /* private fields */ }Implementations§
Source§impl S3Store
impl S3Store
pub fn new(config: &S3Config) -> Result<Self, Error>
pub async fn exists(&self, ns: &Namespace, oid: &str) -> bool
pub async fn size_of(&self, oid: &str) -> Result<u64, Error>
pub async fn read( &self, oid: &str, start: u64, length: u64, ) -> Result<impl Stream<Item = Result<Bytes, Error>> + use<>, Error>
pub fn presigned_download(&self, oid: &str) -> Option<String>
pub fn presigned_upload(&self, ns: &Namespace, oid: &str) -> Option<Presigned>
pub async fn uploaded_size( &self, ns: &Namespace, oid: &str, ) -> Result<u64, Error>
pub async fn adopt(&self, ns: &Namespace, oid: &str) -> Result<(), Error>
pub async fn store( &self, ns: &Namespace, oid: &str, staged: &Path, ) -> Result<(), Error>
pub async fn reclaim_incoming( &self, older_than: Duration, ) -> Result<Reclaimed, Error>
pub async fn usage_of(&self, ns: &Namespace) -> (u64, u64)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for S3Store
impl !UnwindSafe for S3Store
impl Freeze for S3Store
impl Send for S3Store
impl Sync for S3Store
impl Unpin for S3Store
impl UnsafeUnpin for S3Store
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