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) -> String
pub async fn store( &self, ns: &Namespace, oid: &str, staged: &Path, ) -> Result<(), 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