pub struct S3 { /* private fields */ }Implementations§
Source§impl S3
impl S3
pub async fn connect() -> Result<Self, S3Error>
pub async fn connect_named(name: &str) -> Result<Self, S3Error>
pub fn object(&self, bucket: &str, key: &str) -> Object
pub fn object_version( &self, bucket: &str, key: &str, version_id: &str, ) -> Object
pub async fn head_object( &mut self, reference: ObjectRef, ) -> Result<ObjectMeta, S3Error>
pub async fn read_object( &mut self, reference: ObjectRef, options: Option<ReadOptions>, ) -> Result<ObjectReader, S3Error>
pub async fn write_object<B>( &mut self, reference: ObjectRef, body: B, options: Option<WriteOptions>, ) -> Result<ObjectMeta, S3Error>
pub async fn write_object_chunks<I, B>( &mut self, reference: ObjectRef, chunks: I, options: Option<WriteOptions>, ) -> Result<ObjectMeta, S3Error>
pub async fn delete_object( &mut self, reference: ObjectRef, ) -> Result<(), S3Error>
pub async fn list_objects( &mut self, options: ListOptions, ) -> Result<ListPage, S3Error>
pub async fn copy_object( &mut self, source: ObjectRef, destination: ObjectRef, options: Option<CopyOptions>, ) -> Result<ObjectMeta, S3Error>
pub async fn presign_object( &mut self, reference: ObjectRef, options: Option<PresignOptions>, ) -> Result<PresignResult, S3Error>
Auto Trait Implementations§
impl !Freeze for S3
impl !RefUnwindSafe for S3
impl Send for S3
impl Sync for S3
impl Unpin for S3
impl UnsafeUnpin for S3
impl !UnwindSafe for S3
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> 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> 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::Request