Struct twist_deflate::Deflate [] [src]

pub struct Deflate { /* fields omitted */ }

The per-message deflate state.

Methods

impl Deflate
[src]

Add a slog stdout Logger to this service.

Add a slog stderr Logger to this service.

Trait Implementations

impl Default for Deflate
[src]

Returns the "default value" for a type. Read more

impl FromHeader for Deflate
[src]

Initialize your extension from the given Sec-WebSocket-Extensions header string.

impl IntoResponse for Deflate
[src]

Generate the Sec-WebSocket-Extensions portion of your response.

impl PerMessage for Deflate
[src]

Reserve rsvX bits for use by your extension. Valid values are 0 - 8 (no rsv bits reserved, up to all 3). If your bits are already reserved by an extension earlier in the chain, return an io::Error. Read more

If your extension uses the extension_data area of a websocket frame, this function should return true. Read more

Transform the given application data/extension data bytes as necessary.

Transform the given bytes into application/extension data bytes as necessary.