pub type aeron_counter_constants_t = aeron_counter_constants_stct;Expand description
Configuration for a counter that does not change during its lifetime.
Aliased Type§
#[repr(C)]pub struct aeron_counter_constants_t {
pub correlation_id: i64,
pub registration_id: i64,
pub counter_id: i32,
}Fields§
§correlation_id: i64Return the correlation id of the counter creation request that was sent to the media driver. Correlation id is unique across all requests sent to the media driver.
registration_id: i64Return the registration id used to register this counter with the media driver.
For non-static counters this value is the same as correlation_idregistration_id parameter into
aeron_async_add_static_counter call.
counter_id: i32Identity for the counter within the counters reader and counters manager.
Trait Implementations§
Source§impl<S: ResourceStorage<aeron_counter_constants_t>> From<AeronCounterConstants<S>> for aeron_counter_constants_t
impl<S: ResourceStorage<aeron_counter_constants_t>> From<AeronCounterConstants<S>> for aeron_counter_constants_t
Source§fn from(value: AeronCounterConstants<S>) -> Self
fn from(value: AeronCounterConstants<S>) -> Self
Converts to this type from the input type.
Source§impl NativeResource for aeron_counter_constants_t
impl NativeResource for aeron_counter_constants_t
type Policy = LocalResource
Source§type Pointer = CachedPointer<aeron_counter_constants_stct>
type Pointer = CachedPointer<aeron_counter_constants_stct>
How an owning handle reads its native pointer. Cached pointers are only
valid when native calls cannot release or replace the allocation.