pub struct AwcHttpConnector;Expand description
An [object_store] [osc::HttpConnector]: a factory that builds one [awc]-backed [osc::HttpClient]
per [osc::HttpConnector::connect] call. Create using AwcHttpConnector::new.
Reusing awc keeps our whole outbound HTTP stack — including the process-wide post-quantum
rustls provider (see crate::misc::rustls_ext) — in one place, and keeps reqwest (and
transitively ring) out of the build.
object_store calls connect once per HTTP client it needs — the main store client and, for
non-static credentials, separate credential/metadata clients — each with its own
[osc::ClientOptions] (e.g. the IMDS metadata client asks for a shorter connect timeout). We mirror
its reqwest connector by building one awc::Client per call, configured from that call’s options.
Implementations§
Trait Implementations§
Source§impl Clone for AwcHttpConnector
impl Clone for AwcHttpConnector
Source§fn clone(&self) -> AwcHttpConnector
fn clone(&self) -> AwcHttpConnector
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AwcHttpConnector
impl Debug for AwcHttpConnector
Source§impl Default for AwcHttpConnector
impl Default for AwcHttpConnector
Source§fn default() -> AwcHttpConnector
fn default() -> AwcHttpConnector
Auto Trait Implementations§
impl Freeze for AwcHttpConnector
impl RefUnwindSafe for AwcHttpConnector
impl Send for AwcHttpConnector
impl Sync for AwcHttpConnector
impl Unpin for AwcHttpConnector
impl UnsafeUnpin for AwcHttpConnector
impl UnwindSafe for AwcHttpConnector
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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