Struct websocket::header::extensions::Extension
source · pub struct Extension {
pub name: String,
pub params: Vec<Parameter>,
}
Expand description
A WebSocket extension
Fields§
§name: String
The name of this extension
params: Vec<Parameter>
The parameters for this extension
Implementations§
Trait Implementations§
source§impl FromStr for Extension
impl FromStr for Extension
§type Err = WebSocketError
type Err = WebSocketError
The associated error which can be returned from parsing.
source§impl PartialEq for Extension
impl PartialEq for Extension
impl StructuralPartialEq for Extension
Auto Trait Implementations§
impl Freeze for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
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