pub trait AeronCountersReaderForeachCounterFuncCallback {
// Required method
fn handle_aeron_counters_reader_foreach_counter_func(
&mut self,
value: i64,
id: i32,
type_id: i32,
key: &[u8],
label: &str,
);
}Expand description
Function called by aeron_counters_reader_foreach_counter for each counter in the aeron_counters_reader_t.
@param value of the counter. @param id of the counter. @param label for the counter. @param label_length for the counter. @param clientd to be returned in the call
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
Required Methods§
fn handle_aeron_counters_reader_foreach_counter_func( &mut self, value: i64, id: i32, type_id: i32, key: &[u8], label: &str, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl AeronCountersReaderForeachCounterFuncCallback for AeronCountersReaderForeachCounterFuncLogger
impl AeronCountersReaderForeachCounterFuncCallback for AeronCountersReaderForeachCounterFuncSlot
impl AeronCountersReaderForeachCounterFuncCallback for NoHandler
impl<F: FnMut(i64, i32, i32, &[u8], &str)> AeronCountersReaderForeachCounterFuncCallback for F
Any closure with the matching signature can be a callback.
Retained-callback methods allocate it in a SharedHandler.
The registering resource keeps that handler alive.
impl<T: AeronCountersReaderForeachCounterFuncCallback, P: CallbackPolicy> AeronCountersReaderForeachCounterFuncCallback for Handler<T, P>
Pass a Handler clone to share a callback across registrations.