Struct websocket::header::WebSocketKey [−][src]
Represents a Sec-WebSocket-Key header.
Implementations
impl WebSocketKey
[src][−]
pub fn new() -> WebSocketKey
[src][−]
Generate a new, random WebSocketKey
pub fn serialize(&self) -> String
[src][−]
Return the Base64 encoding of this WebSocketKey
pub fn from_array(a: [u8; 16]) -> WebSocketKey
[src][−]
Create WebSocketKey by explicitly specifying the key
Trait Implementations
impl Clone for WebSocketKey
[src][+]
impl Copy for WebSocketKey
[src]
impl Debug for WebSocketKey
[src][+]
impl Default for WebSocketKey
[src][+]
impl FromStr for WebSocketKey
[src][+]
impl Header for WebSocketKey
[src][+]
impl HeaderFormat for WebSocketKey
[src][+]
impl PartialEq<WebSocketKey> for WebSocketKey
[src][+]
impl StructuralPartialEq for WebSocketKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for WebSocketKey
impl Send for WebSocketKey
impl Sync for WebSocketKey
impl Unpin for WebSocketKey
impl UnwindSafe for WebSocketKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> HeaderClone for T where
T: Sealed,
[src]
T: Sealed,
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
[+]
T: Any,