Struct twilio_async::HttpConnector [−][src]
pub struct HttpConnector { /* fields omitted */ }A connector for the http scheme.
Methods
impl HttpConnector[src]
impl HttpConnectorpub fn new(threads: usize, handle: &Handle) -> HttpConnector[src]
pub fn new(threads: usize, handle: &Handle) -> HttpConnectorConstruct a new HttpConnector.
Takes number of DNS worker threads.
pub fn new_with_executor<E>(executor: E, handle: &Handle) -> HttpConnector where
E: 'static + Executor<HttpConnectorBlockingTask>, [src]
pub fn new_with_executor<E>(executor: E, handle: &Handle) -> HttpConnector where
E: 'static + Executor<HttpConnectorBlockingTask>, Construct a new HttpConnector.
Takes an executor to run blocking tasks on.
pub fn enforce_http(&mut self, is_enforced: bool)[src]
pub fn enforce_http(&mut self, is_enforced: bool)Option to enforce all Uris have the http scheme.
Enabled by default.
pub fn set_keepalive(&mut self, dur: Option<Duration>)[src]
pub fn set_keepalive(&mut self, dur: Option<Duration>)Set that all sockets have SO_KEEPALIVE set with the supplied duration.
If None, the option will not be set.
Default is None.
Trait Implementations
impl Clone for HttpConnector[src]
impl Clone for HttpConnectorfn clone(&self) -> HttpConnector[src]
fn clone(&self) -> HttpConnectorReturns 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 Debug for HttpConnector[src]
impl Debug for HttpConnectorfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Service for HttpConnector[src]
impl Service for HttpConnectortype Request = Uri
Requests handled by the service.
type Response = TcpStream
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = HttpConnecting
The future response value.
fn call(&self, uri: Uri) -> <HttpConnector as Service>::Future[src]
fn call(&self, uri: Uri) -> <HttpConnector as Service>::FutureProcess the request and return the response asynchronously.
Auto Trait Implementations
impl !Send for HttpConnector
impl !Send for HttpConnectorimpl !Sync for HttpConnector
impl !Sync for HttpConnector