pub struct AeronSystemCounter { /* private fields */ }
Implementations§
Source§impl AeronSystemCounter
impl AeronSystemCounter
pub fn new(label: &str, id: i32) -> Result<Self, AeronCError>
Sourcepub fn new_zeroed() -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
creates zeroed struct where the underlying c struct is on the heap
pub fn label(&self) -> &str
pub fn id(&self) -> i32
pub fn get_inner(&self) -> *mut aeron_system_counter_t
Source§impl AeronSystemCounter
impl AeronSystemCounter
Sourcepub fn clone_struct(&self) -> Self
pub fn clone_struct(&self) -> Self
Regular clone just increases the reference count of underlying count.
clone_struct
shallow copies the content of the underlying struct on heap.
NOTE: if the struct has references to other structs these will not be copied
Must be only used on structs which has no init/clean up methods. So its danagerous to use with Aeron/AeronContext/AeronPublication/AeronSubscription More intended for AeronArchiveRecordingDescriptor
Trait Implementations§
Source§impl Clone for AeronSystemCounter
impl Clone for AeronSystemCounter
Source§fn clone(&self) -> AeronSystemCounter
fn clone(&self) -> AeronSystemCounter
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 AeronSystemCounter
impl Debug for AeronSystemCounter
Source§impl Default for AeronSystemCounter
impl Default for AeronSystemCounter
This will create an instance where the struct is zeroed, use with care
Source§impl Deref for AeronSystemCounter
impl Deref for AeronSystemCounter
Source§impl From<&AeronSystemCounter> for *mut aeron_system_counter_t
impl From<&AeronSystemCounter> for *mut aeron_system_counter_t
Source§fn from(value: &AeronSystemCounter) -> Self
fn from(value: &AeronSystemCounter) -> Self
Converts to this type from the input type.
Source§impl From<*const aeron_system_counter_stct> for AeronSystemCounter
impl From<*const aeron_system_counter_stct> for AeronSystemCounter
Source§fn from(value: *const aeron_system_counter_t) -> Self
fn from(value: *const aeron_system_counter_t) -> Self
Converts to this type from the input type.
Source§impl From<*mut aeron_system_counter_stct> for AeronSystemCounter
impl From<*mut aeron_system_counter_stct> for AeronSystemCounter
Source§fn from(value: *mut aeron_system_counter_t) -> Self
fn from(value: *mut aeron_system_counter_t) -> Self
Converts to this type from the input type.
Source§impl From<AeronSystemCounter> for *mut aeron_system_counter_t
impl From<AeronSystemCounter> for *mut aeron_system_counter_t
Source§fn from(value: AeronSystemCounter) -> Self
fn from(value: AeronSystemCounter) -> Self
Converts to this type from the input type.
Source§impl From<AeronSystemCounter> for aeron_system_counter_t
impl From<AeronSystemCounter> for aeron_system_counter_t
Source§fn from(value: AeronSystemCounter) -> Self
fn from(value: AeronSystemCounter) -> Self
Converts to this type from the input type.
Source§impl From<aeron_system_counter_stct> for AeronSystemCounter
impl From<aeron_system_counter_stct> for AeronSystemCounter
Source§fn from(value: aeron_system_counter_t) -> Self
fn from(value: aeron_system_counter_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronSystemCounter
impl !RefUnwindSafe for AeronSystemCounter
impl !Send for AeronSystemCounter
impl !Sync for AeronSystemCounter
impl Unpin for AeronSystemCounter
impl !UnwindSafe for AeronSystemCounter
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