[−][src]Struct hyper::client::HttpConnector
A connector for the http scheme.
Methods
impl HttpConnector[src]
pub fn new(threads: usize, handle: &Handle) -> HttpConnector[src]
Construct a new HttpConnector.
Takes number of DNS worker threads.
pub fn new_with_executor<E: 'static>(
executor: E,
handle: &Handle
) -> HttpConnector where
E: Executor<HttpConnectorBlockingTask>, [src]
executor: E,
handle: &Handle
) -> HttpConnector where
E: Executor<HttpConnectorBlockingTask>,
Construct a new HttpConnector.
Takes an executor to run blocking tasks on.
pub fn enforce_http(&mut self, is_enforced: bool)[src]
Option to enforce all Uris have the http scheme.
Enabled by default.
pub fn set_keepalive(&mut self, dur: Option<Duration>)[src]
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]
fn clone(&self) -> HttpConnector[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for HttpConnector[src]
impl Service for HttpConnector[src]
Auto Trait Implementations
impl !RefUnwindSafe for HttpConnector
impl !Send for HttpConnector
impl !Sync for HttpConnector
impl Unpin for HttpConnector
impl !UnwindSafe for HttpConnector
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,