pub enum ConnectionOption {
KeepAlive,
Close,
ConnectionHeader(Ascii<String>),
}
Expand description
Values that can be in the Connection
header.
Variants§
KeepAlive
The keep-alive
connection value.
Close
The close
connection value.
ConnectionHeader(Ascii<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
)