pub struct OpensslConnectServiceFactory<T> { /* private fields */ }Implementations§
Source§impl<T> OpensslConnectServiceFactory<T>
impl<T> OpensslConnectServiceFactory<T>
Sourcepub fn new(connector: SslConnector) -> Self
pub fn new(connector: SslConnector) -> Self
Construct new OpensslConnectService factory
Sourcepub fn with_resolver(connector: SslConnector, resolver: AsyncResolver) -> Self
pub fn with_resolver(connector: SslConnector, resolver: AsyncResolver) -> Self
Construct new connect service with custom DNS resolver
Sourcepub fn service(&self) -> OpensslConnectService<T>
pub fn service(&self) -> OpensslConnectService<T>
Construct OpenSSL connect service
Trait Implementations§
Source§impl<T> Clone for OpensslConnectServiceFactory<T>
impl<T> Clone for OpensslConnectServiceFactory<T>
Source§impl<T: Address + 'static> ServiceFactory for OpensslConnectServiceFactory<T>
impl<T: Address + 'static> ServiceFactory for OpensslConnectServiceFactory<T>
Source§type Error = ConnectError
type Error = ConnectError
Errors produced by the created services.
Source§type Service = OpensslConnectService<T>
type Service = OpensslConnectService<T>
The kind of
Service created by this factory.Source§type Future = Ready<Result<<OpensslConnectServiceFactory<T> as ServiceFactory>::Service, <OpensslConnectServiceFactory<T> as ServiceFactory>::InitError>>
type Future = Ready<Result<<OpensslConnectServiceFactory<T> as ServiceFactory>::Service, <OpensslConnectServiceFactory<T> as ServiceFactory>::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 asynchronously.
Source§fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R>
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R>
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) -> MapErrServiceFactory<Self, F, E>
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E>
Map this service’s error to a different error, returning a new service.
Source§fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E>
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E>
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations§
impl<T> Freeze for OpensslConnectServiceFactory<T>
impl<T> !RefUnwindSafe for OpensslConnectServiceFactory<T>
impl<T> Send for OpensslConnectServiceFactory<T>where
T: Send,
impl<T> Sync for OpensslConnectServiceFactory<T>where
T: Sync,
impl<T> Unpin for OpensslConnectServiceFactory<T>where
T: Unpin,
impl<T> !UnwindSafe for OpensslConnectServiceFactory<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoServiceFactory<T> for Twhere
T: ServiceFactory,
impl<T> IntoServiceFactory<T> for Twhere
T: ServiceFactory,
Source§fn into_factory(self) -> T
fn into_factory(self) -> T
Convert
Self to a ServiceFactory