Struct ratchet_deflate::DeflateExtProvider
source · [−]pub struct DeflateExtProvider { /* private fields */ }
Expand description
An ExtensionProvider for negotiating permessage-deflate during a WebSocket handshake.
Implementations
sourceimpl DeflateExtProvider
impl DeflateExtProvider
sourcepub fn with_config(config: DeflateConfig) -> DeflateExtProvider
pub fn with_config(config: DeflateConfig) -> DeflateExtProvider
Initialise a DeflateExtProvider
with config
.
sourcepub fn config(&self) -> &DeflateConfig
pub fn config(&self) -> &DeflateConfig
Provides a reference to the configuration that this provider has been initialised with.
Trait Implementations
sourceimpl Clone for DeflateExtProvider
impl Clone for DeflateExtProvider
sourcefn clone(&self) -> DeflateExtProvider
fn clone(&self) -> DeflateExtProvider
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 DeflateExtProvider
impl Debug for DeflateExtProvider
sourceimpl Default for DeflateExtProvider
impl Default for DeflateExtProvider
sourcefn default() -> DeflateExtProvider
fn default() -> DeflateExtProvider
Returns the “default value” for a type. Read more
sourceimpl ExtensionProvider for DeflateExtProvider
impl ExtensionProvider for DeflateExtProvider
type Error = DeflateExtensionError
type Error = DeflateExtensionError
The error produced by this extension if the handshake failed.
sourcefn apply_headers(&self, headers: &mut HeaderMap)
fn apply_headers(&self, headers: &mut HeaderMap)
Apply this extension’s headers to a request.
impl Copy for DeflateExtProvider
Auto Trait Implementations
impl RefUnwindSafe for DeflateExtProvider
impl Send for DeflateExtProvider
impl Sync for DeflateExtProvider
impl Unpin for DeflateExtProvider
impl UnwindSafe for DeflateExtProvider
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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