Skip to main content

DrainRateNotifier

Trait DrainRateNotifier 

Source
pub(crate) trait DrainRateNotifier {
    // Required method
    fn notify(&mut self, rate: XonKbpsEwma) -> Result<(), Error>;
}
Expand description

Something that sends drain rate updates to the flow control logic (the XonXoffFlowCtrl).

Required Methods§

Source

fn notify(&mut self, rate: XonKbpsEwma) -> Result<(), Error>

Send the drain rate update.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§