Skip to main content

CompressionSessionExt

Trait CompressionSessionExt 

Source
pub trait CompressionSessionExt: SessionExt {
    // Required methods
    fn compression(&self) -> SessionGuard<'_, CompressionSession>;
    fn register_scheme(&self, scheme: &'static dyn Scheme);
}
Expand description

Extension trait for accessing the CompressionSession of a session.

Required Methods§

Source

fn compression(&self) -> SessionGuard<'_, CompressionSession>

Returns the session’s compression schemes, registering the defaults if absent.

Source

fn register_scheme(&self, scheme: &'static dyn Scheme)

Registers a compression scheme on the session. See CompressionSession::register.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§