Struct actix_net::connector::DefaultConnector [−][src]
pub struct DefaultConnector<T: HostAware>(_);
Methods
impl<T: HostAware> DefaultConnector<T>[src]
impl<T: HostAware> DefaultConnector<T>pub fn new(cfg: ResolverConfig, opts: ResolverOpts) -> Self[src]
pub fn new(cfg: ResolverConfig, opts: ResolverOpts) -> SelfTrait Implementations
impl<T: Clone + HostAware> Clone for DefaultConnector<T>[src]
impl<T: Clone + HostAware> Clone for DefaultConnector<T>fn clone(&self) -> DefaultConnector<T>[src]
fn clone(&self) -> DefaultConnector<T>Returns 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> Default for DefaultConnector<T>[src]
impl<T: HostAware> Default for DefaultConnector<T>impl<T: HostAware> Service for DefaultConnector<T>[src]
impl<T: HostAware> Service for DefaultConnector<T>type Request = T
Requests handled by the service.
type Response = TcpStream
Responses given by the service.
type Error = ConnectorError
Errors produced by the service.
type Future = DefaultConnectorFuture<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.
Auto Trait Implementations
impl<T> Send for DefaultConnector<T> where
T: Send,
impl<T> Send for DefaultConnector<T> where
T: Send, impl<T> Sync for DefaultConnector<T> where
T: Sync,
impl<T> Sync for DefaultConnector<T> where
T: Sync,