pub trait Ops {
type Error: Into<Error>;
type Flush: Flush;
// Required methods
fn total_in(&self) -> u64;
fn total_out(&self) -> u64;
fn run(
&mut self,
input: &[u8],
output: &mut [u8],
flush: Self::Flush,
) -> Result<Status, Self::Error>;
fn run_vec(
&mut self,
input: &[u8],
output: &mut Vec<u8>,
flush: Self::Flush,
) -> Result<Status, Self::Error>;
}Required Associated Types§
Required Methods§
fn total_in(&self) -> u64
fn total_out(&self) -> u64
fn run( &mut self, input: &[u8], output: &mut [u8], flush: Self::Flush, ) -> Result<Status, Self::Error>
fn run_vec( &mut self, input: &[u8], output: &mut Vec<u8>, flush: Self::Flush, ) -> Result<Status, Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".