pub struct AsyncClientBuilder { /* private fields */ }Expand description
Builder requiring endpoint, bearer token, user agent, and all timeout dimensions before an asynchronous client can be constructed.
Implementations§
Source§impl AsyncClientBuilder
impl AsyncClientBuilder
Sourcepub const fn new(
endpoint: HttpsEndpoint,
token: BearerToken,
user_agent: UserAgent,
timeouts: RequestTimeouts,
) -> Self
pub const fn new( endpoint: HttpsEndpoint, token: BearerToken, user_agent: UserAgent, timeouts: RequestTimeouts, ) -> Self
Creates a complete asynchronous-client configuration.
Sourcepub fn build(self) -> Result<AsyncClient, BuildError>
pub fn build(self) -> Result<AsyncClient, BuildError>
Builds a hardened HTTPS-only client.
Sending requests requires an active Tokio executor because reqwest uses
Tokio internally. The core cloud_sdk::transport::AsyncTransport
contract remains executor-neutral.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AsyncClientBuilder
impl RefUnwindSafe for AsyncClientBuilder
impl Send for AsyncClientBuilder
impl Sync for AsyncClientBuilder
impl Unpin for AsyncClientBuilder
impl UnsafeUnpin for AsyncClientBuilder
impl UnwindSafe for AsyncClientBuilder
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