pub struct TlsConnector2<S> { /* private fields */ }Expand description
Rustls connector factory
Implementations§
Source§impl<A> TlsConnector2<Connector2<A>>where
A: Address,
impl<A> TlsConnector2<Connector2<A>>where
A: Address,
pub fn new(config: ClientConfig) -> TlsConnector2<Connector2<A>>
Trait Implementations§
Source§impl<S> Clone for TlsConnector2<S>where
S: Clone,
impl<S> Clone for TlsConnector2<S>where
S: Clone,
Source§fn clone(&self) -> TlsConnector2<S>
fn clone(&self) -> TlsConnector2<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S> Debug for TlsConnector2<S>where
S: Debug,
impl<S> Debug for TlsConnector2<S>where
S: Debug,
Source§impl<'a, A> From<&'a Arc<ClientConfig>> for TlsConnector2<Connector2<A>>where
A: Address,
impl<'a, A> From<&'a Arc<ClientConfig>> for TlsConnector2<Connector2<A>>where
A: Address,
Source§fn from(config: &'a Arc<ClientConfig>) -> TlsConnector2<Connector2<A>>
fn from(config: &'a Arc<ClientConfig>) -> TlsConnector2<Connector2<A>>
Converts to this type from the input type.
Source§impl<A> From<Arc<ClientConfig>> for TlsConnector2<Connector2<A>>where
A: Address,
impl<A> From<Arc<ClientConfig>> for TlsConnector2<Connector2<A>>where
A: Address,
Source§fn from(config: Arc<ClientConfig>) -> TlsConnector2<Connector2<A>>
fn from(config: Arc<ClientConfig>) -> TlsConnector2<Connector2<A>>
Converts to this type from the input type.
Source§type Error = Error<ConnectError>
type Error = Error<ConnectError>
Errors produced by the created services.
Source§type Service = TlsConnectorService2<<S as ServiceFactory<Connect<A>, SharedCfg>>::Service>
type Service = TlsConnectorService2<<S as ServiceFactory<Connect<A>, SharedCfg>>::Service>
The type of
Service produced by this factory.Source§type InitError = <S as ServiceFactory<Connect<A>, SharedCfg>>::InitError
type InitError = <S as ServiceFactory<Connect<A>, SharedCfg>>::InitError
Possible errors encountered during service construction.
Source§async fn create(
&self,
cfg: SharedCfg,
) -> Result<<TlsConnector2<S> as ServiceFactory<Connect<A>, SharedCfg>>::Service, <TlsConnector2<S> as ServiceFactory<Connect<A>, SharedCfg>>::InitError>
async fn create( &self, cfg: SharedCfg, ) -> Result<<TlsConnector2<S> as ServiceFactory<Connect<A>, SharedCfg>>::Service, <TlsConnector2<S> as ServiceFactory<Connect<A>, SharedCfg>>::InitError>
Creates a new service asynchronously and returns it.
Source§async fn pipeline(
&self,
cfg: Cfg,
) -> Result<Pipeline<Self::Service>, Self::InitError>where
Self: Sized,
async fn pipeline(
&self,
cfg: Cfg,
) -> Result<Pipeline<Self::Service>, Self::InitError>where
Self: Sized,
Asynchronously creates a new service and wraps it in a container.
Source§fn map<F, Res>(
self,
f: F,
) -> ServiceChainFactory<MapFactory<Self, F, Req, Res, Cfg>, Req, Cfg>
fn map<F, Res>( self, f: F, ) -> ServiceChainFactory<MapFactory<Self, F, Req, Res, Cfg>, Req, Cfg>
Returns a new service that maps this service’s output to a different type.
Source§fn map_err<F, E>(
self,
f: F,
) -> ServiceChainFactory<MapErrFactory<Self, Req, Cfg, F, E>, Req, Cfg>
fn map_err<F, E>( self, f: F, ) -> ServiceChainFactory<MapErrFactory<Self, Req, Cfg, F, E>, Req, Cfg>
Transforms this service’s error into another error,
producing a new service.
Source§fn map_init_err<F, E>(
self,
f: F,
) -> ServiceChainFactory<MapInitErr<Self, Req, Cfg, F, E>, Req, Cfg>
fn map_init_err<F, E>( self, f: F, ) -> ServiceChainFactory<MapInitErr<Self, Req, Cfg, F, E>, Req, Cfg>
Maps this factory’s initialization error to a different error,
returning a new service factory.
Auto Trait Implementations§
impl<S> !RefUnwindSafe for TlsConnector2<S>
impl<S> !UnwindSafe for TlsConnector2<S>
impl<S> Freeze for TlsConnector2<S>where
S: Freeze,
impl<S> Send for TlsConnector2<S>where
S: Send,
impl<S> Sync for TlsConnector2<S>where
S: Sync,
impl<S> Unpin for TlsConnector2<S>where
S: Unpin,
impl<S> UnsafeUnpin for TlsConnector2<S>where
S: UnsafeUnpin,
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, Req, Cfg> IntoServiceFactory<T, Req, Cfg> for Twhere
T: ServiceFactory<Req, Cfg>,
impl<T, Req, Cfg> IntoServiceFactory<T, Req, Cfg> for Twhere
T: ServiceFactory<Req, Cfg>,
Source§fn into_factory(self) -> T
fn into_factory(self) -> T
Convert
Self to a ServiceFactory