Struct rusteron_client::AeronCountersReader
source · pub struct AeronCountersReader { /* private fields */ }
Implementations§
source§impl AeronCountersReader
impl AeronCountersReader
pub fn new_zeroed() -> Result<Self, AeronCError>
sourcepub fn get_buffers(
&self,
buffers: &AeronCountersReaderBuffers,
) -> Result<i32, AeronCError>
pub fn get_buffers( &self, buffers: &AeronCountersReaderBuffers, ) -> Result<i32, AeronCError>
sourcepub fn foreach_counter<AeronCountersReaderForeachCounterFuncHandlerImpl: AeronCountersReaderForeachCounterFuncCallback>(
&self,
func: Option<&Handler<AeronCountersReaderForeachCounterFuncHandlerImpl>>,
)
pub fn foreach_counter<AeronCountersReaderForeachCounterFuncHandlerImpl: AeronCountersReaderForeachCounterFuncCallback>( &self, func: Option<&Handler<AeronCountersReaderForeachCounterFuncHandlerImpl>>, )
Iterate over the counters in the counters_reader and call the given function for each counter.
§Parameters
-
func
to call for each counter. -
clientd
to pass for each call to func.
sourcepub fn find_by_type_id_and_registration_id(
&self,
type_id: i32,
registration_id: i64,
) -> i32
pub fn find_by_type_id_and_registration_id( &self, type_id: i32, registration_id: i64, ) -> i32
sourcepub fn max_counter_id(&self) -> i32
pub fn max_counter_id(&self) -> i32
sourcepub fn counter_registration_id(
&self,
counter_id: i32,
) -> Result<i64, AeronCError>
pub fn counter_registration_id( &self, counter_id: i32, ) -> Result<i64, AeronCError>
Get the registration id assigned to a counter.
§Parameters
-
counter_id
for which the registration id is requested. -
registration_id
pointer for value to be set on success.
sourcepub fn counter_owner_id(&self, counter_id: i32) -> Result<i64, AeronCError>
pub fn counter_owner_id(&self, counter_id: i32) -> Result<i64, AeronCError>
Get the owner id assigned to a counter which will typically be the client id.
§Parameters
-
counter_id
for which the owner id is requested. -
owner_id
pointer for value to be set on success.
sourcepub fn counter_reference_id(&self, counter_id: i32) -> Result<i64, AeronCError>
pub fn counter_reference_id(&self, counter_id: i32) -> Result<i64, AeronCError>
Get the reference id assigned to a counter which will typically be the registration id of an associated Image, Subscription, Publication, etc.
§Parameters
-
counter_id
for which the reference id is requested. -
reference_id
pointer for value to be set on success.
sourcepub fn counter_state(&self, counter_id: i32) -> Result<i32, AeronCError>
pub fn counter_state(&self, counter_id: i32) -> Result<i32, AeronCError>
Get the state for a counter.
§Parameters
-
counter_id
to find -
state
out pointer for the current state to be stored in.
sourcepub fn counter_type_id(&self, counter_id: i32) -> Result<i32, AeronCError>
pub fn counter_type_id(&self, counter_id: i32) -> Result<i32, AeronCError>
sourcepub fn counter_label(
&self,
counter_id: i32,
buffer: *mut c_char,
buffer_length: usize,
) -> Result<i32, AeronCError>
pub fn counter_label( &self, counter_id: i32, buffer: *mut c_char, buffer_length: usize, ) -> Result<i32, AeronCError>
sourcepub fn free_for_reuse_deadline_ms(
&self,
counter_id: i32,
) -> Result<i64, AeronCError>
pub fn free_for_reuse_deadline_ms( &self, counter_id: i32, ) -> Result<i64, AeronCError>
Get the free for reuse deadline (ms) for a counter.
§Parameters
-
counter_id
to find. -
deadline_ms
output value to store the deadline.
pub fn get_inner(&self) -> *mut aeron_counters_reader_t
§impl AeronCountersReader
impl AeronCountersReader
pub fn get_counter_label(
&self,
counter_id: i32,
max_length: usize,
) -> Result<String, AeronCError>
pub fn get_counter_label( &self, counter_id: i32, max_length: usize, ) -> Result<String, AeronCError>
Get the label for a counter.
param counters_reader that contains the counter
param counter_id to find
param buffer to store the counter in.
param buffer_length length of the output buffer
return -1 on failure, number of characters copied to buffer on success.
Trait Implementations§
source§impl Clone for AeronCountersReader
impl Clone for AeronCountersReader
source§fn clone(&self) -> AeronCountersReader
fn clone(&self) -> AeronCountersReader
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AeronCountersReader
impl Debug for AeronCountersReader
source§impl Deref for AeronCountersReader
impl Deref for AeronCountersReader
source§impl From<&AeronCountersReader> for *mut aeron_counters_reader_t
impl From<&AeronCountersReader> for *mut aeron_counters_reader_t
source§fn from(value: &AeronCountersReader) -> Self
fn from(value: &AeronCountersReader) -> Self
source§impl From<*const aeron_counters_reader_stct> for AeronCountersReader
impl From<*const aeron_counters_reader_stct> for AeronCountersReader
source§fn from(value: *const aeron_counters_reader_t) -> Self
fn from(value: *const aeron_counters_reader_t) -> Self
source§impl From<*mut aeron_counters_reader_stct> for AeronCountersReader
impl From<*mut aeron_counters_reader_stct> for AeronCountersReader
source§fn from(value: *mut aeron_counters_reader_t) -> Self
fn from(value: *mut aeron_counters_reader_t) -> Self
source§impl From<AeronCountersReader> for *mut aeron_counters_reader_t
impl From<AeronCountersReader> for *mut aeron_counters_reader_t
source§fn from(value: AeronCountersReader) -> Self
fn from(value: AeronCountersReader) -> Self
source§impl From<AeronCountersReader> for aeron_counters_reader_t
impl From<AeronCountersReader> for aeron_counters_reader_t
source§fn from(value: AeronCountersReader) -> Self
fn from(value: AeronCountersReader) -> Self
source§impl From<aeron_counters_reader_stct> for AeronCountersReader
impl From<aeron_counters_reader_stct> for AeronCountersReader
source§fn from(value: aeron_counters_reader_t) -> Self
fn from(value: aeron_counters_reader_t) -> Self
Auto Trait Implementations§
impl Freeze for AeronCountersReader
impl !RefUnwindSafe for AeronCountersReader
impl !Send for AeronCountersReader
impl !Sync for AeronCountersReader
impl Unpin for AeronCountersReader
impl !UnwindSafe for AeronCountersReader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)