pub trait Framer: Send {
// Required methods
fn push(&mut self, data: &[u8], now: Instant, out: &mut Vec<Vec<u8>>);
fn flush(&mut self) -> Option<Vec<u8>>;
// Provided methods
fn poll(&mut self, _now: Instant, _out: &mut Vec<Vec<u8>>) { ... }
fn deadline(&self) -> Option<Instant> { ... }
}Expand description
A stateful framer fed with read chunks.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".