Enum websocket::header::ConnectionOption
source · [−]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
sourceimpl Clone for ConnectionOption
impl Clone for ConnectionOption
sourcefn clone(&self) -> ConnectionOption
fn clone(&self) -> ConnectionOption
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConnectionOption
impl Debug for ConnectionOption
sourceimpl Display for ConnectionOption
impl Display for ConnectionOption
sourceimpl FromStr for ConnectionOption
impl FromStr for ConnectionOption
sourceimpl PartialEq<ConnectionOption> for ConnectionOption
impl PartialEq<ConnectionOption> for ConnectionOption
sourcefn eq(&self, other: &ConnectionOption) -> bool
fn eq(&self, other: &ConnectionOption) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ConnectionOption) -> bool
fn ne(&self, other: &ConnectionOption) -> bool
This method tests for !=
.
impl StructuralPartialEq for ConnectionOption
Auto Trait Implementations
impl RefUnwindSafe for ConnectionOption
impl Send for ConnectionOption
impl Sync for ConnectionOption
impl Unpin for ConnectionOption
impl UnwindSafe for ConnectionOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more