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<KeepAlive> for KeepAlive
impl PartialEq<KeepAlive> for KeepAlive
impl Copy for KeepAlive
impl Eq for KeepAlive
impl StructuralEq for KeepAlive
impl StructuralPartialEq for KeepAlive
Auto Trait Implementations§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.