pub enum ConnectionOption {
    KeepAlive,
    Close,
    ConnectionHeader(UniCase<String>),
}Expand description
Values that can be in the Connection header.
Variants§
KeepAlive
The keep-alive connection value.
Close
The close connection value.
ConnectionHeader(UniCase<String>)
Values in the Connection header that are supposed to be names of other Headers.
When a header field aside from Connection is used to supply control information for or about the current connection, the sender MUST list the corresponding field-name within the Connection header field.
Trait Implementations§
Source§impl Clone for ConnectionOption
 
impl Clone for ConnectionOption
Source§fn clone(&self) -> ConnectionOption
 
fn clone(&self) -> ConnectionOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for ConnectionOption
 
impl Debug for ConnectionOption
Source§impl Display for ConnectionOption
 
impl Display for ConnectionOption
Source§impl FromStr for ConnectionOption
 
impl FromStr for ConnectionOption
Source§impl PartialEq for ConnectionOption
 
impl PartialEq for ConnectionOption
impl StructuralPartialEq for ConnectionOption
Auto Trait Implementations§
impl Freeze for ConnectionOption
impl RefUnwindSafe for ConnectionOption
impl Send for ConnectionOption
impl Sync for ConnectionOption
impl Unpin for ConnectionOption
impl UnwindSafe for ConnectionOption
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