Enum actix_http::KeepAlive
source · pub enum KeepAlive {
Timeout(Duration),
Os,
Disabled,
}
Expand description
Connection keep-alive config.
Variants§
Timeout(Duration)
Keep-alive duration.
KeepAlive::Timeout(Duration::ZERO)
is mapped to KeepAlive::Disabled
.
Os
Rely on OS to shutdown TCP connection.
Some defaults can be very long, check your OS documentation.
Disabled
Keep-alive is disabled.
Connections will be closed immediately.
Trait Implementations§
source§impl PartialEq for KeepAlive
impl PartialEq for KeepAlive
impl Copy for KeepAlive
impl Eq for KeepAlive
impl StructuralPartialEq for KeepAlive
Auto Trait Implementations§
impl Freeze for KeepAlive
impl RefUnwindSafe for KeepAlive
impl Send for KeepAlive
impl Sync for KeepAlive
impl Unpin for KeepAlive
impl UnwindSafe for KeepAlive
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.