Struct ntex_connect::Connect

source ·
pub struct Connect<T> { /* private fields */ }
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.

Host name

Port of the request

Preresolved addresses of the request.

Takes preresolved addresses of the request.

Return reference to inner type

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Responses given by the service.
Errors produced by the service when polling readiness or executing call.
The future response value.
Process the request and return the response asynchronously. Read more
Returns Ready when the service is able to process requests. 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
Map this service’s error to a different error, returning a new service. Read more
Responses given by the service.
Errors produced by the service when polling readiness or executing call.
The future response value.
Process the request and return the response asynchronously. Read more
Returns Ready when the service is able to process requests. 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
Map this service’s error to a different error, returning a new service. Read more
Responses given by the created services.
Errors produced by the created services.
The kind of Service created by this factory.
Errors potentially raised while building a service.
The future of the ServiceFactory instance.
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.
Map this service’s error to a different error, returning a new service.
Map this factory’s init error to a different error, returning a new service.
Responses given by the created services.
Errors produced by the created services.
The kind of Service created by this factory.
Errors potentially raised while building a service.
The future of the ServiceFactory instance.
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.
Map this service’s error to a different error, returning a new service.
Map this factory’s init error to a different error, returning a new service.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.