pub struct SslConnector<S> { /* private fields */ }Implementations§
Source§impl<A> SslConnector<Connector<A>>where
A: Address,
impl<A> SslConnector<Connector<A>>where
A: Address,
Sourcepub fn new(connector: SslConnector) -> SslConnector<Connector<A>>
pub fn new(connector: SslConnector) -> SslConnector<Connector<A>>
Construct new OpensslConnectService factory
Trait Implementations§
Source§impl<S> Clone for SslConnector<S>where
S: Clone,
impl<S> Clone for SslConnector<S>where
S: Clone,
Source§fn clone(&self) -> SslConnector<S>
fn clone(&self) -> SslConnector<S>
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<S> Debug for SslConnector<S>where
S: Debug,
impl<S> Debug for SslConnector<S>where
S: Debug,
Source§type Error = ConnectError
type Error = ConnectError
Errors produced by the created services.
Source§type Service = SslConnectorService<<S as ServiceFactory<Connect<A>, SharedCfg>>::Service>
type Service = SslConnectorService<<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<<SslConnector<S> as ServiceFactory<Connect<A>, SharedCfg>>::Service, <SslConnector<S> as ServiceFactory<Connect<A>, SharedCfg>>::InitError>
async fn create( &self, cfg: SharedCfg, ) -> Result<<SslConnector<S> as ServiceFactory<Connect<A>, SharedCfg>>::Service, <SslConnector<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> Freeze for SslConnector<S>where
S: Freeze,
impl<S> RefUnwindSafe for SslConnector<S>where
S: RefUnwindSafe,
impl<S> Send for SslConnector<S>where
S: Send,
impl<S> Sync for SslConnector<S>where
S: Sync,
impl<S> Unpin for SslConnector<S>where
S: Unpin,
impl<S> UnsafeUnpin for SslConnector<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for SslConnector<S>where
S: 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
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