Struct actix_web::client::SendRequest [−][src]
SendRequest
is a Future
which represents an asynchronous
request sending process.
Methods
impl SendRequest
[src]
[−]
impl SendRequest
pub fn timeout(self, timeout: Duration) -> Self
[src]
[−]
pub fn timeout(self, timeout: Duration) -> Self
Set request timeout
Request timeout is the total time before a response must be received. Default value is 5 seconds.
pub fn conn_timeout(self, timeout: Duration) -> Self
[src]
[−]
pub fn conn_timeout(self, timeout: Duration) -> Self
Set connection timeout
Connection timeout includes resolving hostname and actual connection to the host. Default value is 1 second.
pub fn wait_timeout(self, timeout: Duration) -> Self
[src]
[−]
pub fn wait_timeout(self, timeout: Duration) -> Self
Set wait timeout
If connections pool limits are enabled, wait time indicates max time to wait for available connection. Default value is 5 seconds.
Trait Implementations
impl Future for SendRequest
[src]
[+]
impl Future for SendRequest
Auto Trait Implementations
impl !Send for SendRequest
impl !Send for SendRequest
impl !Sync for SendRequest
impl !Sync for SendRequest