Struct actix_net::connector::Connector [−][src]
pub struct Connector<T = String> { /* fields omitted */ }
Methods
impl<T: HostAware> Connector<T>[src]
impl<T: HostAware> Connector<T>pub fn new(cfg: ResolverConfig, opts: ResolverOpts) -> Self[src]
pub fn new(cfg: ResolverConfig, opts: ResolverOpts) -> Selfpub fn with_resolver(
resolver: Resolver<T>
) -> impl Service<Request = T, Response = (T, ConnectionInfo, TcpStream), Error = ConnectorError> + Clone[src]
pub fn with_resolver(
resolver: Resolver<T>
) -> impl Service<Request = T, Response = (T, ConnectionInfo, TcpStream), Error = ConnectorError> + Clonepub fn new_service<E>(
) -> impl NewService<Request = T, Response = (T, ConnectionInfo, TcpStream), Error = ConnectorError, InitError = E> + Clone[src]
pub fn new_service<E>(
) -> impl NewService<Request = T, Response = (T, ConnectionInfo, TcpStream), Error = ConnectorError, InitError = E> + Clonepub fn new_service_with_config<E>(
cfg: ResolverConfig,
opts: ResolverOpts
) -> impl NewService<Request = T, Response = (T, ConnectionInfo, TcpStream), Error = ConnectorError, InitError = E> + Clone[src]
pub fn new_service_with_config<E>(
cfg: ResolverConfig,
opts: ResolverOpts
) -> impl NewService<Request = T, Response = (T, ConnectionInfo, TcpStream), Error = ConnectorError, InitError = E> + Clonepub fn change_request<T2: HostAware>(&self) -> Connector<T2>[src]
pub fn change_request<T2: HostAware>(&self) -> Connector<T2>Trait Implementations
impl<T: HostAware> Default for Connector<T>[src]
impl<T: HostAware> Default for Connector<T>impl<T> Clone for Connector<T>[src]
impl<T> Clone for Connector<T>fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T: HostAware> Service for Connector<T>[src]
impl<T: HostAware> Service for Connector<T>type Request = T
Requests handled by the service.
type Response = (T, ConnectionInfo, TcpStream)
Responses given by the service.
type Error = ConnectorError
Errors produced by the service.
type Future = ConnectorFuture<T>
The future response value.
fn poll_ready(&mut self) -> Poll<(), Self::Error>[src]
fn poll_ready(&mut self) -> Poll<(), Self::Error>Returns Ready when the service is able to process requests. Read more
fn call(&mut self, req: Self::Request) -> Self::Future[src]
fn call(&mut self, req: Self::Request) -> Self::FutureProcess the request and return the response asynchronously. Read more
fn ready(self) -> Ready<Self>[src]
fn ready(self) -> Ready<Self>A future yielding the service when it is ready to accept a request.