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 copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)