pub struct ClientBuilder<Connector = (), Tls = (), Authentication = (), Middleware = IdentityHandler> { /* private fields */ }Expand description
Ordinary generic builder for a reusable client-role component.
Implementations§
Source§impl ClientBuilder<()>
impl ClientBuilder<()>
Sourcepub fn connector<Next, Work, Transport, Error>(
self,
connector: Next,
) -> ClientBuilder<Next, (), ()>
pub fn connector<Next, Work, Transport, Error>( self, connector: Next, ) -> ClientBuilder<Next, (), ()>
Configures the reusable application-supplied connector.
Source§impl<Connector, Tls, Authentication, Middleware> ClientBuilder<Connector, Tls, Authentication, Middleware>
impl<Connector, Tls, Authentication, Middleware> ClientBuilder<Connector, Tls, Authentication, Middleware>
Sourcepub fn tls<Next>(
self,
tls: Next,
) -> ClientBuilder<Connector, Next, Authentication, Middleware>
pub fn tls<Next>( self, tls: Next, ) -> ClientBuilder<Connector, Next, Authentication, Middleware>
Selects an explicit TLS policy.
Sourcepub fn authentication<Next>(
self,
authentication: Next,
) -> ClientBuilder<Connector, Tls, Next, Middleware>
pub fn authentication<Next>( self, authentication: Next, ) -> ClientBuilder<Connector, Tls, Next, Middleware>
Selects explicit trust authentication.
Sourcepub fn startup_parameters(self, defaults: StartupParameters) -> Self
pub fn startup_parameters(self, defaults: StartupParameters) -> Self
Sets reusable startup defaults which per-call values override explicitly.
Sourcepub fn protocol_limits(self, limits: ProtocolLimits) -> Self
pub fn protocol_limits(self, limits: ProtocolLimits) -> Self
Replaces conservative protocol limits with an explicit policy.
Sourcepub fn middleware<Next>(
self,
factory: Next,
) -> ClientBuilder<Connector, Tls, Authentication, MiddlewareChain<Middleware, Next>>
pub fn middleware<Next>( self, factory: Next, ) -> ClientBuilder<Connector, Tls, Authentication, MiddlewareChain<Middleware, Next>>
Appends a middleware factory. Stages run in declaration order.
Trait Implementations§
Auto Trait Implementations§
impl<Connector, Tls, Authentication, Middleware> Freeze for ClientBuilder<Connector, Tls, Authentication, Middleware>
impl<Connector, Tls, Authentication, Middleware> RefUnwindSafe for ClientBuilder<Connector, Tls, Authentication, Middleware>where
Middleware: RefUnwindSafe,
Connector: RefUnwindSafe,
Tls: RefUnwindSafe,
Authentication: RefUnwindSafe,
impl<Connector, Tls, Authentication, Middleware> Send for ClientBuilder<Connector, Tls, Authentication, Middleware>
impl<Connector, Tls, Authentication, Middleware> Sync for ClientBuilder<Connector, Tls, Authentication, Middleware>
impl<Connector, Tls, Authentication, Middleware> Unpin for ClientBuilder<Connector, Tls, Authentication, Middleware>
impl<Connector, Tls, Authentication, Middleware> UnsafeUnpin for ClientBuilder<Connector, Tls, Authentication, Middleware>where
Middleware: UnsafeUnpin,
Connector: UnsafeUnpin,
Tls: UnsafeUnpin,
Authentication: UnsafeUnpin,
impl<Connector, Tls, Authentication, Middleware> UnwindSafe for ClientBuilder<Connector, Tls, Authentication, Middleware>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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