pub trait AttachedTransformer<Attached> {
// Required method
fn attached(&mut self, attached: Attached);
}Expand description
A transformer that takes what its stream’s connection handed over on attaching.
Every transformer takes (), the nothing most providers hand over. A provider handing over
more implements it for its own transformer, which receives it before any frame is processed.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<Exchange, InstrumentKey, Kind> AttachedTransformer<LseResume> for LseTransformer<Exchange, InstrumentKey, Kind>where
Exchange: Connector,
Resume from what the connection handed over, if anything.
Replaces any resume state the transformer was built with: the connection’s is the one that knows which replay windows it opened.