Struct aws_config::timeout::Http
source · [−]#[non_exhaustive]pub struct Http { /* private fields */ }
Expand description
HTTP timeouts used by DynConnector
s
Implementations
sourceimpl Http
impl Http
sourcepub fn read_timeout(&self) -> TriState<Duration>
pub fn read_timeout(&self) -> TriState<Duration>
Return this config’s read timeout.
A limit on the amount of time an application takes to attempt to read the first byte over an established, open connection after write request. This is also known as the “time to first byte” timeout.
sourcepub fn with_read_timeout(self, timeout: TriState<Duration>) -> Http
pub fn with_read_timeout(self, timeout: TriState<Duration>) -> Http
Mutate this timeout::Http
config, setting the HTTP read timeout
sourcepub fn connect_timeout(&self) -> TriState<Duration>
pub fn connect_timeout(&self) -> TriState<Duration>
Return this config’s read timeout
A limit on the amount of time after making an initial connect attempt on a socket to complete the connect-handshake.
sourcepub fn with_connect_timeout(self, timeout: TriState<Duration>) -> Http
pub fn with_connect_timeout(self, timeout: TriState<Duration>) -> Http
Mutate this timeout::Http
config, setting the HTTP connect timeout
sourcepub fn has_timeouts(&self) -> bool
pub fn has_timeouts(&self) -> bool
Return true if any timeouts are intentionally set or disabled
sourcepub fn take_unset_from(self, other: Http) -> Http
pub fn take_unset_from(self, other: Http) -> Http
Merges two HTTP timeout configs together.
Trait Implementations
impl StructuralPartialEq for Http
Auto Trait Implementations
impl RefUnwindSafe for Http
impl Send for Http
impl Sync for Http
impl Unpin for Http
impl UnwindSafe for Http
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more