pub struct SignedTransport { /* private fields */ }Expand description
The real transport: resolve credentials, sign SigV4, send with reqwest.
Implementations§
Source§impl SignedTransport
impl SignedTransport
Sourcepub async fn new(region: Region) -> Result<SignedTransport, Error>
pub async fn new(region: Region) -> Result<SignedTransport, Error>
Resolves the default credential chain for region and builds the HTTP client.
§Why the chain rather than explicit keys
Because the credentials a developer actually has are in SSO, a credential process,
or an instance profile, and re-implementing that resolution is how a client ends up
working only on the machine it was written on. aws-config’s default chain is the
whole reason to depend on it at all. Its HTTP client serves credential endpoints;
reqwest sends the signed service requests. SSO and credential processes stay enabled.
The shared provider keeps the SDK identity cache: temporary credentials refresh before expiry, and concurrent requests share the same refresh.
Trait Implementations§
Source§impl Debug for SignedTransport
impl Debug for SignedTransport
Source§impl Transport for SignedTransport
impl Transport for SignedTransport
Source§fn region(&self) -> Option<&Region>
fn region(&self) -> Option<&Region>
The service region, when known, for diagnostics about ambiguous denials.
Custom transports may leave this unknown without changing their behavior.
Auto Trait Implementations§
impl !RefUnwindSafe for SignedTransport
impl !UnwindSafe for SignedTransport
impl Freeze for SignedTransport
impl Send for SignedTransport
impl Sync for SignedTransport
impl Unpin for SignedTransport
impl UnsafeUnpin for SignedTransport
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> 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.