pub struct Config { /* private fields */ }Expand description
Configuration for a Client
Implementations§
Source§impl Config
impl Config
Sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Create a new Config builder.
The builder uses only the values it is given: it loads no shared AWS
configuration and does not query EC2 instance metadata. Use
from_env to load configuration from the environment.
Sourcepub fn multipart_threshold(&self) -> &PartSize
pub fn multipart_threshold(&self) -> &PartSize
Returns a reference to the multipart upload threshold part size
Sourcepub fn part_size(&self) -> &PartSize
pub fn part_size(&self) -> &PartSize
Returns a reference to the target part size to use for transfer operations
Sourcepub fn concurrency(&self) -> &ConcurrencyMode
pub fn concurrency(&self) -> &ConcurrencyMode
Returns the concurrency mode to use for transfer operations.
This is the mode used for concurrent in-flight requests across all operations.
Sourcepub fn runtime_config(&self) -> &RuntimeConfig
pub fn runtime_config(&self) -> &RuntimeConfig
Returns the execution configuration for transfer work.
Sourcepub fn read_ahead(&self) -> &ReadAhead
pub fn read_ahead(&self) -> &ReadAhead
Returns the read-ahead mode used for downloads.
This is the client default; a download may override it per request via
DownloadInput.
Sourcepub fn memory(&self) -> &MemoryConfig
pub fn memory(&self) -> &MemoryConfig
Returns the payload-memory configuration.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Config
impl !UnwindSafe for Config
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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 moreCreates a shared type from an unshared type.