S3ClientConfig

Struct S3ClientConfig 

Source
pub struct S3ClientConfig { /* private fields */ }
Expand description

Configurations for the CRT-based S3 client

Implementations§

Source§

impl S3ClientConfig

Source

pub fn new() -> Self

Source

pub fn auth_config(self, auth_config: S3ClientAuthConfig) -> Self

Set the configuration for authenticating to S3

Source

pub fn part_size(self, part_size: usize) -> Self

Set the part size for multi-part operations to S3 (both PUT and GET)

Source

pub fn read_part_size(self, size: usize) -> Self

Set the part size for multi-part-get operations to S3.

Source

pub fn write_part_size(self, size: usize) -> Self

Set the part size for multi-part-put operations to S3.

Source

pub fn throughput_target_gbps(self, throughput_target_gbps: f64) -> Self

Set the target throughput in Gbps for the S3 client

Source

pub fn memory_limit_in_bytes(self, memory_limit_in_bytes: u64) -> Self

Set the memory limit in bytes for the S3 client

Source

pub fn endpoint_config(self, endpoint_config: EndpointConfig) -> Self

Set the endpoint configuration for endpoint resolution

Source

pub fn user_agent(self, user_agent: UserAgent) -> Self

Set a constructor for the HTTP User-agent header for S3 requests

Source

pub fn request_payer(self, request_payer: &str) -> Self

Set a value for the request payer HTTP header for S3 requests

Source

pub fn bucket_owner(self, bucket_owner: &str) -> Self

Set an expected bucket owner value

Source

pub fn max_attempts(self, max_attempts: NonZeroUsize) -> Self

Set a maximum number of attempts for S3 requests. Will be overridden by the AWS_MAX_ATTEMPTS environment variable if set.

Source

pub fn read_backpressure(self, read_backpressure: bool) -> Self

Set the flag for backpressure read

Source

pub fn initial_read_window(self, initial_read_window: usize) -> Self

Set a value for initial backpressure read window size

Source

pub fn network_interface_names( self, network_interface_names: Vec<String>, ) -> Self

Set a list of network interfaces to distribute S3 requests over

Source

pub fn telemetry_callback( self, telemetry_callback: Arc<dyn OnTelemetry>, ) -> Self

Set a custom telemetry callback handler

Source

pub fn event_loop_threads(self, event_loop_threads: u16) -> Self

Override the number of threads used by the CRTs AwsEventLoop

Source

pub fn memory_pool(self, pool: impl MemoryPool) -> Self

Set a custom memory pool

Source

pub fn memory_pool_factory(self, pool_factory: impl MemoryPoolFactory) -> Self

Set a custom memory pool factory

Trait Implementations§

Source§

impl Clone for S3ClientConfig

Source§

fn clone(&self) -> S3ClientConfig

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 Debug for S3ClientConfig

Source§

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

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

impl Default for S3ClientConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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> 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