Struct ntex::connect::openssl::SslConnector
source · pub struct SslConnector<T> { /* private fields */ }
Implementations§
source§impl<T> SslConnector<T>where
T: Address,
impl<T> SslConnector<T>where
T: Address,
sourcepub fn new(connector: SslConnector) -> SslConnector<T>
pub fn new(connector: SslConnector) -> SslConnector<T>
Construct new OpensslConnectService factory
sourcepub fn memory_pool(self, id: PoolId) -> SslConnector<T>
pub fn memory_pool(self, id: PoolId) -> SslConnector<T>
Set memory pool.
Use specified memory pool for memory allocations. By default P0 memory pool is used.
Trait Implementations§
source§impl<T> Clone for SslConnector<T>
impl<T> Clone for SslConnector<T>
source§fn clone(&self) -> SslConnector<T>
fn clone(&self) -> SslConnector<T>
Returns a copy 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<T> Debug for SslConnector<T>
impl<T> Debug for SslConnector<T>
source§impl<T> Service<Connect<T>> for SslConnector<T>where
T: Address,
impl<T> Service<Connect<T>> for SslConnector<T>where
T: Address,
§type Error = ConnectError
type Error = ConnectError
Errors produced by the service when polling readiness or executing call.
source§async fn call(
&self,
req: Connect<T>,
_: ServiceCtx<'_, SslConnector<T>>
) -> Result<<SslConnector<T> as Service<Connect<T>>>::Response, <SslConnector<T> as Service<Connect<T>>>::Error>
async fn call( &self, req: Connect<T>, _: ServiceCtx<'_, SslConnector<T>> ) -> Result<<SslConnector<T> as Service<Connect<T>>>::Response, <SslConnector<T> as Service<Connect<T>>>::Error>
Process the request and return the response asynchronously. Read more
source§async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is able to process requests. Read more
source§impl<T, C> ServiceFactory<Connect<T>, C> for SslConnector<T>where
T: Address,
impl<T, C> ServiceFactory<Connect<T>, C> for SslConnector<T>where
T: Address,
§type Error = ConnectError
type Error = ConnectError
Errors produced by the created services.
§type Service = SslConnector<T>
type Service = SslConnector<T>
The kind of
Service
created by this factory.source§async fn create(
&self,
_: C
) -> Result<<SslConnector<T> as ServiceFactory<Connect<T>, C>>::Service, <SslConnector<T> as ServiceFactory<Connect<T>, C>>::InitError>
async fn create( &self, _: C ) -> Result<<SslConnector<T> as ServiceFactory<Connect<T>, C>>::Service, <SslConnector<T> as ServiceFactory<Connect<T>, C>>::InitError>
Create and return a new service value asynchronously.
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,
Create and return a new service value asynchronously and wrap into 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>
Map this service’s output to a different type, returning a new service
of the resulting 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>
Map this service’s error to a different error, returning 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>
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations§
impl<T> Freeze for SslConnector<T>
impl<T> !RefUnwindSafe for SslConnector<T>
impl<T> !Send for SslConnector<T>
impl<T> !Sync for SslConnector<T>
impl<T> Unpin for SslConnector<T>
impl<T> !UnwindSafe for SslConnector<T>
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
source§fn into_service(self) -> Svc
fn into_service(self) -> Svc
Convert to a
Service
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