pub struct S3Config { /* private fields */ }Expand description
Validated configuration used to construct an S3 client.
Implementations§
Source§impl S3Config
impl S3Config
Sourcepub fn builder() -> S3ConfigBuilder
pub fn builder() -> S3ConfigBuilder
Starts a configuration builder with HTTPS-safe defaults.
Sourcepub fn addressing_style(&self) -> AddressingStyle
pub fn addressing_style(&self) -> AddressingStyle
Returns the configured bucket addressing style.
Sourcepub fn connect_timeout(&self) -> Duration
pub fn connect_timeout(&self) -> Duration
Returns the connection-establishment timeout.
Sourcepub fn attempt_timeout(&self) -> Duration
pub fn attempt_timeout(&self) -> Duration
Returns the timeout applied to a single request attempt.
Sourcepub fn operation_timeout(&self) -> Duration
pub fn operation_timeout(&self) -> Duration
Returns the overall operation timeout across all attempts.
Sourcepub fn idle_body_timeout(&self) -> Duration
pub fn idle_body_timeout(&self) -> Duration
Returns the maximum permitted gap between response body chunks.
Sourcepub fn max_xml_response_size(&self) -> usize
pub fn max_xml_response_size(&self) -> usize
Returns the maximum XML response body size in bytes.
Sourcepub fn max_error_response_size(&self) -> usize
pub fn max_error_response_size(&self) -> usize
Returns the maximum error response body size in bytes.
Sourcepub fn retry_policy(&self) -> &RetryPolicy
pub fn retry_policy(&self) -> &RetryPolicy
Returns the retry policy.
Sourcepub fn user_agent(&self) -> &str
pub fn user_agent(&self) -> &str
Returns the HTTP user-agent value.
Sourcepub fn credentials_provider(&self) -> &Arc<dyn CredentialsProvider> ⓘ
pub fn credentials_provider(&self) -> &Arc<dyn CredentialsProvider> ⓘ
Returns the credential provider.
Sourcepub fn observer(&self) -> Option<&Arc<dyn RequestObserver>>
pub fn observer(&self) -> Option<&Arc<dyn RequestObserver>>
Returns the optional sanitized request observer.
Sourcepub fn for_bucket(&self, bucket: impl Into<String>) -> Result<Self, S3Error>
pub fn for_bucket(&self, bucket: impl Into<String>) -> Result<Self, S3Error>
Clones this service configuration for another bucket.
This is used by crate::S3Client::for_bucket to retain the same
connection pool and credential provider while validating the new bucket
for the configured addressing style.
§Errors
Returns an error when the bucket is empty or invalid for the configured endpoint and addressing style.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for S3Config
impl !UnwindSafe for S3Config
impl Freeze for S3Config
impl Send for S3Config
impl Sync for S3Config
impl Unpin for S3Config
impl UnsafeUnpin for S3Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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