pub struct AeronCounterConstants { /* private fields */ }
Expand description
Configuration for a counter that does not change during it’s lifetime.
Implementations§
source§impl AeronCounterConstants
impl AeronCounterConstants
pub fn new(registration_id: i64, counter_id: i32) -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
pub fn registration_id(&self) -> i64
pub fn counter_id(&self) -> i32
pub fn get_inner(&self) -> *mut aeron_counter_constants_t
Trait Implementations§
source§impl Clone for AeronCounterConstants
impl Clone for AeronCounterConstants
source§fn clone(&self) -> AeronCounterConstants
fn clone(&self) -> AeronCounterConstants
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AeronCounterConstants
impl Debug for AeronCounterConstants
source§impl Default for AeronCounterConstants
impl Default for AeronCounterConstants
This will create an instance where the struct is zeroed, use with care
source§impl Deref for AeronCounterConstants
impl Deref for AeronCounterConstants
source§impl From<&AeronCounterConstants> for *mut aeron_counter_constants_t
impl From<&AeronCounterConstants> for *mut aeron_counter_constants_t
source§fn from(value: &AeronCounterConstants) -> Self
fn from(value: &AeronCounterConstants) -> Self
Converts to this type from the input type.
source§impl From<*const aeron_counter_constants_stct> for AeronCounterConstants
impl From<*const aeron_counter_constants_stct> for AeronCounterConstants
source§fn from(value: *const aeron_counter_constants_t) -> Self
fn from(value: *const aeron_counter_constants_t) -> Self
Converts to this type from the input type.
source§impl From<*mut aeron_counter_constants_stct> for AeronCounterConstants
impl From<*mut aeron_counter_constants_stct> for AeronCounterConstants
source§fn from(value: *mut aeron_counter_constants_t) -> Self
fn from(value: *mut aeron_counter_constants_t) -> Self
Converts to this type from the input type.
source§impl From<AeronCounterConstants> for *mut aeron_counter_constants_t
impl From<AeronCounterConstants> for *mut aeron_counter_constants_t
source§fn from(value: AeronCounterConstants) -> Self
fn from(value: AeronCounterConstants) -> Self
Converts to this type from the input type.
source§impl From<AeronCounterConstants> for aeron_counter_constants_t
impl From<AeronCounterConstants> for aeron_counter_constants_t
source§fn from(value: AeronCounterConstants) -> Self
fn from(value: AeronCounterConstants) -> Self
Converts to this type from the input type.
source§impl From<aeron_counter_constants_stct> for AeronCounterConstants
impl From<aeron_counter_constants_stct> for AeronCounterConstants
source§fn from(value: aeron_counter_constants_t) -> Self
fn from(value: aeron_counter_constants_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronCounterConstants
impl !RefUnwindSafe for AeronCounterConstants
impl !Send for AeronCounterConstants
impl !Sync for AeronCounterConstants
impl Unpin for AeronCounterConstants
impl !UnwindSafe for AeronCounterConstants
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)