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 wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
Required Methods§
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§
impl AeronAvailableCounterCallback for AeronAvailableCounterLogger
impl AeronAvailableCounterCallback for AeronAvailableCounterSlot
impl AeronAvailableCounterCallback for NoHandler
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.
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.