Struct salvo::http::headers::SecWebsocketVersion [−][src]
pub struct SecWebsocketVersion(_);
Expand description
The Sec-Websocket-Version
header.
Implementations
Sec-Websocket-Version: 13
Trait Implementations
The name of this header.
pub fn decode<'i, I>(values: &mut I) -> Result<SecWebsocketVersion, Error> where
I: Iterator<Item = &'i HeaderValue>,
pub fn decode<'i, I>(values: &mut I) -> Result<SecWebsocketVersion, Error> where
I: Iterator<Item = &'i HeaderValue>,
Decode this type from an iterator of HeaderValue
s.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SecWebsocketVersion
impl Send for SecWebsocketVersion
impl Sync for SecWebsocketVersion
impl Unpin for SecWebsocketVersion
impl UnwindSafe for SecWebsocketVersion
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self