Struct ntex::connect::Connect [−][src]
pub struct Connect<T> { /* fields omitted */ }
Expand description
Connect request
Implementations
Create Connect
instance by spliting the string by ‘:’ and convert the second part to u16
Create new Connect
instance from host and address. Connector skips name resolution stage for such connect messages.
Use port if address does not provide one.
By default it set to 0
Use address.
Use addresses.
Takes preresolved addresses of the request.
Trait Implementations
type Error = ConnectError
type Error = ConnectError
Errors produced by the service.
The future response value.
Returns Ready
when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
Shutdown service. Read more
Map this service’s output to a different type, returning a new service of the resulting type. Read more
type Error = ConnectError
type Error = ConnectError
Errors produced by the service.
type Future = ConnectServiceResponse<T>
type Future = ConnectServiceResponse<T>
The future response value.
Returns Ready
when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
Shutdown service. Read more
Map this service’s output to a different type, returning a new service of the resulting type. Read more
type Error = ConnectError
type Error = ConnectError
Errors produced by the service.
The future response value.
Returns Ready
when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
Shutdown service. Read more
Map this service’s output to a different type, returning a new service of the resulting type. Read more
type Error = ConnectError
type Error = ConnectError
Errors produced by the service.
The future response value.
Returns Ready
when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
Shutdown service. Read more
Map this service’s output to a different type, returning a new service of the resulting type. Read more
type Error = ConnectError
type Error = ConnectError
Errors produced by the service
Create and return a new service value asynchronously.
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Map this service’s error to a different error, returning a new service.
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
Map this factory’s init error to a different error, returning a new service.
type Error = ConnectError
type Error = ConnectError
Errors produced by the service
Create and return a new service value asynchronously.
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Map this service’s error to a different error, returning a new service.
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
Map this factory’s init error to a different error, returning a new service.
type Error = ConnectError
type Error = ConnectError
Errors produced by the service
Create and return a new service value asynchronously.
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Map this service’s error to a different error, returning a new service.
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
Map this factory’s init error to a different error, returning a new service.
type Error = ConnectError
type Error = ConnectError
Errors produced by the service
Create and return a new service value asynchronously.
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Map this service’s error to a different error, returning a new service.
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations
impl<T> RefUnwindSafe for Connect<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Connect<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more