Skip to main content

AttachedTransformer

Trait AttachedTransformer 

Source
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§

Source

fn attached(&mut self, attached: Attached)

Take what the connection handed the stream on attaching.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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.

Source§

impl<T> AttachedTransformer<()> for T