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§
Sourcefn compression(&self) -> SessionGuard<'_, CompressionSession>
fn compression(&self) -> SessionGuard<'_, CompressionSession>
Returns the session’s compression schemes, registering the defaults if absent.
Sourcefn register_scheme(&self, scheme: &'static dyn Scheme)
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".