Struct actix_net::ssl::OpensslConnector
source · pub struct OpensslConnector<R, T, E> { /* private fields */ }
Expand description
Openssl connector factory
Implementations§
source§impl<R, T, E> OpensslConnector<R, T, E>
impl<R, T, E> OpensslConnector<R, T, E>
pub fn new(connector: SslConnector) -> Self
source§impl<R: RequestHost, T: AsyncRead + AsyncWrite> OpensslConnector<R, T, ()>
impl<R: RequestHost, T: AsyncRead + AsyncWrite> OpensslConnector<R, T, ()>
Trait Implementations§
source§impl<R, T, E> Clone for OpensslConnector<R, T, E>
impl<R, T, E> Clone for OpensslConnector<R, T, E>
source§impl<R: RequestHost, T: AsyncRead + AsyncWrite, E> NewService for OpensslConnector<R, T, E>
impl<R: RequestHost, T: AsyncRead + AsyncWrite, E> NewService for OpensslConnector<R, T, E>
§type Future = FutureResult<<OpensslConnector<R, T, E> as NewService>::Service, <OpensslConnector<R, T, E> as NewService>::InitError>
type Future = FutureResult<<OpensslConnector<R, T, E> as NewService>::Service, <OpensslConnector<R, T, E> as NewService>::InitError>
The future of the
Service
instance.source§fn new_service(&self) -> Self::Future
fn new_service(&self) -> Self::Future
Create and return a new service value asynchronously.
Auto Trait Implementations§
impl<R, T, E> RefUnwindSafe for OpensslConnector<R, T, E>where
E: RefUnwindSafe,
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<R, T, E> Send for OpensslConnector<R, T, E>where
E: Send,
R: Send,
T: Send,
impl<R, T, E> Sync for OpensslConnector<R, T, E>where
E: Sync,
R: Sync,
T: Sync,
impl<R, T, E> Unpin for OpensslConnector<R, T, E>where
E: Unpin,
R: Unpin,
T: Unpin,
impl<R, T, E> UnwindSafe for OpensslConnector<R, T, E>where
E: UnwindSafe,
R: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<T> IntoNewService<T> for Twhere
T: NewService,
impl<T> IntoNewService<T> for Twhere
T: NewService,
source§fn into_new_service(self) -> T
fn into_new_service(self) -> T
Convert to an
NewService
source§impl<T> NewServiceExt for Twhere
T: NewService + ?Sized,
impl<T> NewServiceExt for Twhere
T: NewService + ?Sized,
fn apply<S, I, F, R>(
self,
service: I,
f: F
) -> AndThenNewService<Self, ApplyNewService<S, F, R, Self::Response>>where
Self: Sized,
S: NewService<InitError = Self::InitError>,
S::Error: Into<<R::Future as Future>::Error>,
I: IntoNewService<S>,
F: Fn(Self::Response, &mut S::Service) -> R + Clone,
R: IntoFuture<Error = Self::Error>,
fn and_then<F, B>(self, new_service: F) -> AndThenNewService<Self, B>where
Self: Sized,
F: IntoNewService<B>,
B: NewService<Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
source§fn from_err<E>(self) -> FromErrNewService<Self, E>where
Self: Sized,
E: From<Self::Error>,
fn from_err<E>(self) -> FromErrNewService<Self, E>where
Self: Sized,
E: From<Self::Error>,
NewService
that create service to map this service’s error
and new service’s init error to any error
implementing From
for this services
Error`. Read moresource§fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B>where
Self: Sized,
F: IntoNewService<B>,
B: NewService<Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B>where
Self: Sized,
F: IntoNewService<B>,
B: NewService<Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
Create
NewService
to chain on a computation for when a call to the
service finished, passing the result of the call to the next
service B
. Read more