Skip to main content

AeronAvailableCounterCallback

Trait AeronAvailableCounterCallback 

Source
pub trait AeronAvailableCounterCallback {
    // Required method
    fn handle_aeron_on_available_counter(
        &mut self,
        counters_reader: AeronCountersReader,
        registration_id: i64,
        counter_id: i32,
    );
}
Expand description

Function called by aeron_client_t to deliver notifications that a counter has been added to the driver.

@param clientd to be returned in the call. @param counters_reader that holds the counter. @param registration_id of the counter. @param counter_id of the counter.

(note you must copy any arguments that you use afterwards even those with static lifetimes)

Required Methods§

Source

fn handle_aeron_on_available_counter( &mut self, counters_reader: AeronCountersReader, registration_id: i64, counter_id: i32, )

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl AeronAvailableCounterCallback for AeronAvailableCounterLogger

Source§

impl AeronAvailableCounterCallback for NoHandler

Source§

impl<F: FnMut(AeronCountersReader, i64, i32)> AeronAvailableCounterCallback 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: AeronAvailableCounterCallback> AeronAvailableCounterCallback for Handler<T>

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