pub struct ClientBuilder<H, C> { /* private fields */ }
Expand description
Builder for a Client
or UntypedClient
.
Implementations§
Source§impl<H, C> ClientBuilder<H, C>
impl<H, C> ClientBuilder<H, C>
Sourcepub fn auth_handler<U>(self, auth_handler: U) -> ClientBuilder<U, C>
pub fn auth_handler<U>(self, auth_handler: U) -> ClientBuilder<U, C>
Configure the authentication handler to use when connecting to a server.
Sourcepub fn config(self, config: ClientConfig) -> Self
pub fn config(self, config: ClientConfig) -> Self
Configure the client-local configuration details.
Sourcepub fn connector<U>(self, connector: U) -> ClientBuilder<H, U>
pub fn connector<U>(self, connector: U) -> ClientBuilder<H, U>
Configure the connector to use to facilitate connecting to a server.
Sourcepub fn connect_timeout(
self,
connect_timeout: impl Into<Option<Duration>>,
) -> Self
pub fn connect_timeout( self, connect_timeout: impl Into<Option<Duration>>, ) -> Self
Configure a maximum duration to wait for a connection to a server to complete.
Source§impl<H, C> ClientBuilder<H, C>
impl<H, C> ClientBuilder<H, C>
Sourcepub async fn connect_untyped(self) -> Result<UntypedClient>
pub async fn connect_untyped(self) -> Result<UntypedClient>
Establishes a connection with a remote server using the configured Transport
and other settings, returning a new UntypedClient
instance once the connection
is fully established and authenticated.
Trait Implementations§
Auto Trait Implementations§
impl<H, C> Freeze for ClientBuilder<H, C>
impl<H, C> RefUnwindSafe for ClientBuilder<H, C>where
H: RefUnwindSafe,
C: RefUnwindSafe,
impl<H, C> Send for ClientBuilder<H, C>
impl<H, C> Sync for ClientBuilder<H, C>
impl<H, C> Unpin for ClientBuilder<H, C>
impl<H, C> UnwindSafe for ClientBuilder<H, C>where
H: UnwindSafe,
C: UnwindSafe,
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