Enum iron::headers::ConnectionOption
[−]
[src]
pub enum ConnectionOption { KeepAlive, Close, ConnectionHeader(UniCase<String>), }
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
impl Debug for ConnectionOption
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl PartialEq<ConnectionOption> for ConnectionOption
fn eq(&self, __arg_0: &ConnectionOption) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConnectionOption) -> bool
This method tests for !=
.
impl Clone for ConnectionOption
fn clone(&self) -> ConnectionOption
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more