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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
Source§impl HttpConnector for AwcHttpConnector
impl HttpConnector for AwcHttpConnector
Source§fn connect(&self, options: &ClientOptions) -> Result<HttpClient>
fn connect(&self, options: &ClientOptions) -> Result<HttpClient>
Create a new
HttpClient with the provided ClientOptionsAuto 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
Mutably borrows from an owned value. Read more
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>
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 more