pub trait ProfileCodec {
type Encoder: Write;
// Required methods
fn new_encoder(
size_hint: usize,
max_capacity: usize,
compression_level: i32,
) -> Result<Self::Encoder>;
fn finish(encoder: Self::Encoder) -> Result<Vec<u8>>;
}Required Associated Types§
Required Methods§
fn new_encoder( size_hint: usize, max_capacity: usize, compression_level: i32, ) -> Result<Self::Encoder>
fn finish(encoder: Self::Encoder) -> Result<Vec<u8>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.