pub enum ConnectionDirective {
Close,
KeepAlive,
}Expand description
Directive applied to the Connection header for a response.
Variants§
Close
Explicitly instruct the client to close the TCP connection.
KeepAlive
Leave the connection open for further requests (default for HTTP/1.1).
Trait Implementations§
Source§impl Clone for ConnectionDirective
impl Clone for ConnectionDirective
Source§fn clone(&self) -> ConnectionDirective
fn clone(&self) -> ConnectionDirective
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConnectionDirective
Source§impl Debug for ConnectionDirective
impl Debug for ConnectionDirective
impl Eq for ConnectionDirective
Source§impl PartialEq for ConnectionDirective
impl PartialEq for ConnectionDirective
impl StructuralPartialEq for ConnectionDirective
Auto Trait Implementations§
impl Freeze for ConnectionDirective
impl RefUnwindSafe for ConnectionDirective
impl Send for ConnectionDirective
impl Sync for ConnectionDirective
impl Unpin for ConnectionDirective
impl UnsafeUnpin for ConnectionDirective
impl UnwindSafe for ConnectionDirective
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