Skip to main content

AeronFlowControlStrategySmFuncCallback

Trait AeronFlowControlStrategySmFuncCallback 

Source
pub trait AeronFlowControlStrategySmFuncCallback {
    // Required method
    fn handle_aeron_flow_control_strategy_on_sm_func(
        &mut self,
        sm: &[u8],
        recv_addr: &SockaddrStorage,
        snd_lmt: i64,
        initial_term_id: i32,
        position_bits_to_shift: usize,
        now_ns: i64,
    ) -> i64;
}
Expand description

(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)

Required Methods§

Source

fn handle_aeron_flow_control_strategy_on_sm_func( &mut self, sm: &[u8], recv_addr: &SockaddrStorage, snd_lmt: i64, initial_term_id: i32, position_bits_to_shift: usize, now_ns: i64, ) -> i64

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl AeronFlowControlStrategySmFuncCallback for AeronFlowControlStrategySmFuncLogger

Source§

impl AeronFlowControlStrategySmFuncCallback for AeronFlowControlStrategySmFuncSlot

Source§

impl AeronFlowControlStrategySmFuncCallback for NoHandler

Source§

impl<F: FnMut(&[u8], &SockaddrStorage, i64, i32, usize, i64) -> i64> AeronFlowControlStrategySmFuncCallback for F

Any closure with the matching signature is a callback: methods that retain it heap-allocate it into a Handler owned by the registering resource.

Source§

impl<T: AeronFlowControlStrategySmFuncCallback> AeronFlowControlStrategySmFuncCallback for Handler<T>

Pass an existing Handler clone anywhere a callback value is expected, e.g. to share one callback instance across several registrations.