pub struct AeronCounter { /* private fields */ }
Implementations§
Source§impl AeronCounter
impl AeronCounter
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
Sourcepub fn constants(
&self,
constants: &AeronCounterConstants,
) -> Result<i32, AeronCError>
pub fn constants( &self, constants: &AeronCounterConstants, ) -> Result<i32, AeronCError>
Sourcepub fn get_constants(&self) -> Result<AeronCounterConstants, AeronCError>
pub fn get_constants(&self) -> Result<AeronCounterConstants, AeronCError>
Fill in a structure with the constants in use by a counter.
Sourcepub fn close<AeronNotificationHandlerImpl: AeronNotificationCallback>(
&self,
on_close_complete: Option<&Handler<AeronNotificationHandlerImpl>>,
) -> Result<i32, AeronCError>
pub fn close<AeronNotificationHandlerImpl: AeronNotificationCallback>( &self, on_close_complete: Option<&Handler<AeronNotificationHandlerImpl>>, ) -> Result<i32, AeronCError>
Sourcepub fn close_once<AeronNotificationHandlerImpl: FnMut()>(
&self,
on_close_complete: AeronNotificationHandlerImpl,
) -> Result<i32, AeronCError>
pub fn close_once<AeronNotificationHandlerImpl: FnMut()>( &self, on_close_complete: AeronNotificationHandlerImpl, ) -> Result<i32, AeronCError>
Asynchronously close the counter.
§Return
0 for success or -1 for error.
NOTE: aeron must not store this closure and instead use it immediately. If not you will get undefined behaviour, use with care
pub fn get_inner(&self) -> *mut aeron_counter_t
Source§impl AeronCounter
impl AeronCounter
pub fn new(async_: &AeronAsyncAddCounter) -> Result<Self, AeronCError>
Source§impl AeronCounter
impl AeronCounter
pub fn addr_atomic(&self) -> &AtomicI64
Trait Implementations§
Source§impl Clone for AeronCounter
impl Clone for AeronCounter
Source§fn clone(&self) -> AeronCounter
fn clone(&self) -> AeronCounter
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 AeronCounter
impl Debug for AeronCounter
Source§impl Deref for AeronCounter
impl Deref for AeronCounter
Source§impl From<&AeronCounter> for *mut aeron_counter_t
impl From<&AeronCounter> for *mut aeron_counter_t
Source§fn from(value: &AeronCounter) -> Self
fn from(value: &AeronCounter) -> Self
Converts to this type from the input type.
Source§impl From<*const aeron_counter_stct> for AeronCounter
impl From<*const aeron_counter_stct> for AeronCounter
Source§fn from(value: *const aeron_counter_t) -> Self
fn from(value: *const aeron_counter_t) -> Self
Converts to this type from the input type.
Source§impl From<*mut aeron_counter_stct> for AeronCounter
impl From<*mut aeron_counter_stct> for AeronCounter
Source§fn from(value: *mut aeron_counter_t) -> Self
fn from(value: *mut aeron_counter_t) -> Self
Converts to this type from the input type.
Source§impl From<AeronCounter> for *mut aeron_counter_t
impl From<AeronCounter> for *mut aeron_counter_t
Source§fn from(value: AeronCounter) -> Self
fn from(value: AeronCounter) -> Self
Converts to this type from the input type.
Source§impl From<AeronCounter> for aeron_counter_t
impl From<AeronCounter> for aeron_counter_t
Source§fn from(value: AeronCounter) -> Self
fn from(value: AeronCounter) -> Self
Converts to this type from the input type.
Source§impl From<aeron_counter_stct> for AeronCounter
impl From<aeron_counter_stct> for AeronCounter
Source§fn from(value: aeron_counter_t) -> Self
fn from(value: aeron_counter_t) -> Self
Converts to this type from the input type.
impl Send for AeronCounter
impl Sync for AeronCounter
Auto Trait Implementations§
impl Freeze for AeronCounter
impl !RefUnwindSafe for AeronCounter
impl Unpin for AeronCounter
impl !UnwindSafe for AeronCounter
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