pub struct Connect<T> { /* private fields */ }Expand description
Connect request
Implementations§
Source§impl<T> Connect<T>where
T: Address,
impl<T> Connect<T>where
T: Address,
Sourcepub fn new(req: T) -> Connect<T>
pub fn new(req: T) -> Connect<T>
Create Connect instance by spliting the string by ‘:’ and convert the second part to u16
Sourcepub fn with(req: T, addr: SocketAddr) -> Connect<T>
pub fn with(req: T, addr: SocketAddr) -> Connect<T>
Create new Connect instance from host and address. Connector skips name resolution stage for such connect messages.
Sourcepub fn set_port(self, port: u16) -> Connect<T>
pub fn set_port(self, port: u16) -> Connect<T>
Use port if address does not provide one.
By default it set to 0
Sourcepub fn set_addr(self, addr: Option<SocketAddr>) -> Connect<T>
pub fn set_addr(self, addr: Option<SocketAddr>) -> Connect<T>
Use address.
Sourcepub fn set_addrs<I>(self, addrs: I) -> Connect<T>where
I: IntoIterator<Item = SocketAddr>,
pub fn set_addrs<I>(self, addrs: I) -> Connect<T>where
I: IntoIterator<Item = SocketAddr>,
Use addresses.
Sourcepub fn take_addrs(&mut self) -> ConnectTakeAddrsIter
pub fn take_addrs(&mut self) -> ConnectTakeAddrsIter
Takes preresolved addresses of the request.
Trait Implementations§
Source§impl<A, S> Service<Connect<A>> for SslConnectorService<S>
impl<A, S> Service<Connect<A>> for SslConnectorService<S>
Source§type Error = ConnectError
type Error = ConnectError
Errors produced by the service when polling readiness or executing call.
Source§async fn ready(
&self,
ctx: ServiceCtx<'_, SslConnectorService<S>>,
) -> Result<(), <SslConnectorService<S> as Service<Connect<A>>>::Error>
async fn ready( &self, ctx: ServiceCtx<'_, SslConnectorService<S>>, ) -> Result<(), <SslConnectorService<S> as Service<Connect<A>>>::Error>
Returns when the service is ready to process requests. Read more
Source§fn poll(
&self,
cx: &mut Context<'_>,
) -> Result<(), <SslConnectorService<S> as Service<Connect<A>>>::Error>
fn poll( &self, cx: &mut Context<'_>, ) -> Result<(), <SslConnectorService<S> as Service<Connect<A>>>::Error>
Polls the service from the current async task. Read more
Source§async fn call(
&self,
message: Connect<A>,
ctx: ServiceCtx<'_, SslConnectorService<S>>,
) -> Result<<SslConnectorService<S> as Service<Connect<A>>>::Response, <SslConnectorService<S> as Service<Connect<A>>>::Error>
async fn call( &self, message: Connect<A>, ctx: ServiceCtx<'_, SslConnectorService<S>>, ) -> Result<<SslConnectorService<S> as Service<Connect<A>>>::Response, <SslConnectorService<S> as Service<Connect<A>>>::Error>
Processes a request and returns the response asynchronously. Read more
Source§impl<A, S> Service<Connect<A>> for SslConnectorService2<S>
impl<A, S> Service<Connect<A>> for SslConnectorService2<S>
Source§type Error = Error<ConnectError>
type Error = Error<ConnectError>
Errors produced by the service when polling readiness or executing call.
Source§async fn ready(
&self,
ctx: ServiceCtx<'_, SslConnectorService2<S>>,
) -> Result<(), <SslConnectorService2<S> as Service<Connect<A>>>::Error>
async fn ready( &self, ctx: ServiceCtx<'_, SslConnectorService2<S>>, ) -> Result<(), <SslConnectorService2<S> as Service<Connect<A>>>::Error>
Returns when the service is ready to process requests. Read more
Source§fn poll(
&self,
cx: &mut Context<'_>,
) -> Result<(), <SslConnectorService2<S> as Service<Connect<A>>>::Error>
fn poll( &self, cx: &mut Context<'_>, ) -> Result<(), <SslConnectorService2<S> as Service<Connect<A>>>::Error>
Polls the service from the current async task. Read more
Source§async fn call(
&self,
message: Connect<A>,
ctx: ServiceCtx<'_, SslConnectorService2<S>>,
) -> Result<<SslConnectorService2<S> as Service<Connect<A>>>::Response, <SslConnectorService2<S> as Service<Connect<A>>>::Error>
async fn call( &self, message: Connect<A>, ctx: ServiceCtx<'_, SslConnectorService2<S>>, ) -> Result<<SslConnectorService2<S> as Service<Connect<A>>>::Response, <SslConnectorService2<S> as Service<Connect<A>>>::Error>
Processes a request and returns the response asynchronously. Read more
Source§impl<A, S> Service<Connect<A>> for TlsConnectorService<S>
impl<A, S> Service<Connect<A>> for TlsConnectorService<S>
Source§type Error = ConnectError
type Error = ConnectError
Errors produced by the service when polling readiness or executing call.
Source§async fn ready(
&self,
ctx: ServiceCtx<'_, TlsConnectorService<S>>,
) -> Result<(), <TlsConnectorService<S> as Service<Connect<A>>>::Error>
async fn ready( &self, ctx: ServiceCtx<'_, TlsConnectorService<S>>, ) -> Result<(), <TlsConnectorService<S> as Service<Connect<A>>>::Error>
Returns when the service is ready to process requests. Read more
Source§fn poll(
&self,
cx: &mut Context<'_>,
) -> Result<(), <TlsConnectorService<S> as Service<Connect<A>>>::Error>
fn poll( &self, cx: &mut Context<'_>, ) -> Result<(), <TlsConnectorService<S> as Service<Connect<A>>>::Error>
Polls the service from the current async task. Read more
Source§async fn call(
&self,
req: Connect<A>,
ctx: ServiceCtx<'_, TlsConnectorService<S>>,
) -> Result<<TlsConnectorService<S> as Service<Connect<A>>>::Response, <TlsConnectorService<S> as Service<Connect<A>>>::Error>
async fn call( &self, req: Connect<A>, ctx: ServiceCtx<'_, TlsConnectorService<S>>, ) -> Result<<TlsConnectorService<S> as Service<Connect<A>>>::Response, <TlsConnectorService<S> as Service<Connect<A>>>::Error>
Processes a request and returns the response asynchronously. Read more
Source§impl<A, S> Service<Connect<A>> for TlsConnectorService2<S>
impl<A, S> Service<Connect<A>> for TlsConnectorService2<S>
Source§type Error = Error<ConnectError>
type Error = Error<ConnectError>
Errors produced by the service when polling readiness or executing call.
Source§async fn ready(
&self,
ctx: ServiceCtx<'_, TlsConnectorService2<S>>,
) -> Result<(), <TlsConnectorService2<S> as Service<Connect<A>>>::Error>
async fn ready( &self, ctx: ServiceCtx<'_, TlsConnectorService2<S>>, ) -> Result<(), <TlsConnectorService2<S> as Service<Connect<A>>>::Error>
Returns when the service is ready to process requests. Read more
Source§fn poll(
&self,
cx: &mut Context<'_>,
) -> Result<(), <TlsConnectorService2<S> as Service<Connect<A>>>::Error>
fn poll( &self, cx: &mut Context<'_>, ) -> Result<(), <TlsConnectorService2<S> as Service<Connect<A>>>::Error>
Polls the service from the current async task. Read more
Source§async fn call(
&self,
req: Connect<A>,
ctx: ServiceCtx<'_, TlsConnectorService2<S>>,
) -> Result<<TlsConnectorService2<S> as Service<Connect<A>>>::Response, <TlsConnectorService2<S> as Service<Connect<A>>>::Error>
async fn call( &self, req: Connect<A>, ctx: ServiceCtx<'_, TlsConnectorService2<S>>, ) -> Result<<TlsConnectorService2<S> as Service<Connect<A>>>::Response, <TlsConnectorService2<S> as Service<Connect<A>>>::Error>
Processes a request and returns the response asynchronously. Read more
Source§impl<T> Service<Connect<T>> for ConnectorService<T>where
T: Address,
impl<T> Service<Connect<T>> for ConnectorService<T>where
T: Address,
Source§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<'_, ConnectorService<T>>,
) -> Result<<ConnectorService<T> as Service<Connect<T>>>::Response, <ConnectorService<T> as Service<Connect<T>>>::Error>
async fn call( &self, req: Connect<T>, _: ServiceCtx<'_, ConnectorService<T>>, ) -> Result<<ConnectorService<T> as Service<Connect<T>>>::Response, <ConnectorService<T> as Service<Connect<T>>>::Error>
Processes a request and returns 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 ready to process requests. Read more
Source§fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
Polls the service from the current async task. Read more
Source§impl<T> Service<Connect<T>> for ConnectorService2<T>where
T: Address,
impl<T> Service<Connect<T>> for ConnectorService2<T>where
T: Address,
Source§type Error = Error<ConnectError>
type Error = Error<ConnectError>
Errors produced by the service when polling readiness or executing call.
Source§async fn call(
&self,
req: Connect<T>,
_: ServiceCtx<'_, ConnectorService2<T>>,
) -> Result<<ConnectorService2<T> as Service<Connect<T>>>::Response, <ConnectorService2<T> as Service<Connect<T>>>::Error>
async fn call( &self, req: Connect<T>, _: ServiceCtx<'_, ConnectorService2<T>>, ) -> Result<<ConnectorService2<T> as Service<Connect<T>>>::Response, <ConnectorService2<T> as Service<Connect<T>>>::Error>
Processes a request and returns 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 ready to process requests. Read more
Source§fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
Polls the service from the current async task. Read more
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.
Source§type Error = Error<ConnectError>
type Error = Error<ConnectError>
Errors produced by the created services.
Source§type Service = SslConnectorService2<<S as ServiceFactory<Connect<A>, SharedCfg>>::Service>
type Service = SslConnectorService2<<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<<SslConnector2<S> as ServiceFactory<Connect<A>, SharedCfg>>::Service, <SslConnector2<S> as ServiceFactory<Connect<A>, SharedCfg>>::InitError>
async fn create( &self, cfg: SharedCfg, ) -> Result<<SslConnector2<S> as ServiceFactory<Connect<A>, SharedCfg>>::Service, <SslConnector2<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.
Source§type Error = ConnectError
type Error = ConnectError
Errors produced by the created services.
Source§type Service = TlsConnectorService<<S as ServiceFactory<Connect<A>, SharedCfg>>::Service>
type Service = TlsConnectorService<<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<<TlsConnector<S> as ServiceFactory<Connect<A>, SharedCfg>>::Service, <TlsConnector<S> as ServiceFactory<Connect<A>, SharedCfg>>::InitError>
async fn create( &self, cfg: SharedCfg, ) -> Result<<TlsConnector<S> as ServiceFactory<Connect<A>, SharedCfg>>::Service, <TlsConnector<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.
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.
Source§type Error = ConnectError
type Error = ConnectError
Errors produced by the created services.
Source§type Service = ConnectorService<T>
type Service = ConnectorService<T>
The type of
Service produced by this factory.Source§type InitError = ConnectServiceError
type InitError = ConnectServiceError
Possible errors encountered during service construction.
Source§async fn create(
&self,
cfg: SharedCfg,
) -> Result<<Connector<T> as ServiceFactory<Connect<T>, SharedCfg>>::Service, <Connector<T> as ServiceFactory<Connect<T>, SharedCfg>>::InitError>
async fn create( &self, cfg: SharedCfg, ) -> Result<<Connector<T> as ServiceFactory<Connect<T>, SharedCfg>>::Service, <Connector<T> as ServiceFactory<Connect<T>, 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.
Source§type Error = Error<ConnectError>
type Error = Error<ConnectError>
Errors produced by the created services.
Source§type Service = ConnectorService2<T>
type Service = ConnectorService2<T>
The type of
Service produced by this factory.Source§type InitError = ConnectServiceError
type InitError = ConnectServiceError
Possible errors encountered during service construction.
Source§async fn create(
&self,
cfg: SharedCfg,
) -> Result<<Connector2<T> as ServiceFactory<Connect<T>, SharedCfg>>::Service, <Connector2<T> as ServiceFactory<Connect<T>, SharedCfg>>::InitError>
async fn create( &self, cfg: SharedCfg, ) -> Result<<Connector2<T> as ServiceFactory<Connect<T>, SharedCfg>>::Service, <Connector2<T> as ServiceFactory<Connect<T>, 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.
impl<T> Eq for Connect<T>where
T: Eq,
impl<T> StructuralPartialEq for Connect<T>
Auto Trait Implementations§
impl<T> Freeze for Connect<T>where
T: Freeze,
impl<T> RefUnwindSafe for Connect<T>where
T: RefUnwindSafe,
impl<T> Send for Connect<T>where
T: Send,
impl<T> Sync for Connect<T>where
T: Sync,
impl<T> Unpin for Connect<T>where
T: Unpin,
impl<T> UnsafeUnpin for Connect<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Connect<T>where
T: 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