SdkClient

Struct SdkClient 

Source
pub struct SdkClient<B = DefaultRequestBuilder>(/* private fields */);
Expand description

AWS S3 SDK client.

Pairs a Client with a RequestBuilder used to set additional properties on request objects before sending.

Implementations§

Source§

impl SdkClient

Source

pub fn new(client: Client) -> Self

Create a new SdkClient with default RequestBuilder.

Source

pub async fn from_config(loader: ConfigLoader) -> Self

Create a new SdkClient from the supplied ConfigLoader.

Source

pub async fn defaults() -> Self

Create a new SdkClient with default RequestBuilder using the default ConfigLoader.

Source

pub fn request_builder<B: RequestBuilder>(self, builder: B) -> SdkClient<B>

Set a request builder for this S3 client.

Trait Implementations§

Source§

impl<B: Clone> Clone for SdkClient<B>

Source§

fn clone(&self) -> SdkClient<B>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<B: Debug> Debug for SdkClient<B>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<B: RequestBuilder> SendRequest for SdkClient<B>

Source§

async fn send_create_upload_request( &self, req: CreateRequest, ) -> Result<UploadData>

Send a request to create a new multipart upload, returning an UploadData having the upload ID assignment.
Source§

async fn send_new_part_upload_request( &self, req: UploadPartRequest, ) -> Result<CompletedPart>

Send a request to upload a part to a multipart upload, returning the CompletedPart containing entity tag and part number, which are required in the subsequent complete upload request.
Source§

async fn send_complete_upload_request( &self, req: CompleteRequest, ) -> Result<CompletedUpload>

Send a request to complete a multipart upload, returning a CompletedUpload, which has the unique entity tag of the object as well as the object URI.
Source§

async fn send_abort_upload_request(&self, req: AbortRequest) -> Result<()>

Send a request to abort a multipart upload returning an empty response if successful.

Auto Trait Implementations§

§

impl<B> Freeze for SdkClient<B>
where B: Freeze,

§

impl<B = DefaultRequestBuilder> !RefUnwindSafe for SdkClient<B>

§

impl<B> Send for SdkClient<B>
where B: Send,

§

impl<B> Sync for SdkClient<B>
where B: Sync,

§

impl<B> Unpin for SdkClient<B>
where B: Unpin,

§

impl<B = DefaultRequestBuilder> !UnwindSafe for SdkClient<B>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more