pub struct AeronDutyCycleTracker { /* private fields */ }
Implementations§
Source§impl AeronDutyCycleTracker
impl AeronDutyCycleTracker
pub fn new<AeronDutyCycleTrackerMeasureAndUpdateFuncHandlerImpl: AeronDutyCycleTrackerMeasureAndUpdateFuncCallback>( update: aeron_duty_cycle_tracker_update_func_t, measure_and_update: Option<&Handler<AeronDutyCycleTrackerMeasureAndUpdateFuncHandlerImpl>>, ) -> 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 update(&self) -> aeron_duty_cycle_tracker_update_func_t
pub fn measure_and_update( &self, ) -> aeron_duty_cycle_tracker_measure_and_update_func_t
pub fn state(&self) -> *mut c_void
pub fn get_inner(&self) -> *mut aeron_duty_cycle_tracker_t
Source§impl AeronDutyCycleTracker
impl AeronDutyCycleTracker
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 AeronDutyCycleTracker
impl Clone for AeronDutyCycleTracker
Source§fn clone(&self) -> AeronDutyCycleTracker
fn clone(&self) -> AeronDutyCycleTracker
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 AeronDutyCycleTracker
impl Debug for AeronDutyCycleTracker
Source§impl Default for AeronDutyCycleTracker
impl Default for AeronDutyCycleTracker
This will create an instance where the struct is zeroed, use with care
Source§impl Deref for AeronDutyCycleTracker
impl Deref for AeronDutyCycleTracker
Source§impl From<&AeronDutyCycleTracker> for *mut aeron_duty_cycle_tracker_t
impl From<&AeronDutyCycleTracker> for *mut aeron_duty_cycle_tracker_t
Source§fn from(value: &AeronDutyCycleTracker) -> Self
fn from(value: &AeronDutyCycleTracker) -> Self
Converts to this type from the input type.
Source§impl From<*const aeron_duty_cycle_tracker_stct> for AeronDutyCycleTracker
impl From<*const aeron_duty_cycle_tracker_stct> for AeronDutyCycleTracker
Source§fn from(value: *const aeron_duty_cycle_tracker_t) -> Self
fn from(value: *const aeron_duty_cycle_tracker_t) -> Self
Converts to this type from the input type.
Source§impl From<*mut aeron_duty_cycle_tracker_stct> for AeronDutyCycleTracker
impl From<*mut aeron_duty_cycle_tracker_stct> for AeronDutyCycleTracker
Source§fn from(value: *mut aeron_duty_cycle_tracker_t) -> Self
fn from(value: *mut aeron_duty_cycle_tracker_t) -> Self
Converts to this type from the input type.
Source§impl From<AeronDutyCycleTracker> for *mut aeron_duty_cycle_tracker_t
impl From<AeronDutyCycleTracker> for *mut aeron_duty_cycle_tracker_t
Source§fn from(value: AeronDutyCycleTracker) -> Self
fn from(value: AeronDutyCycleTracker) -> Self
Converts to this type from the input type.
Source§impl From<AeronDutyCycleTracker> for aeron_duty_cycle_tracker_t
impl From<AeronDutyCycleTracker> for aeron_duty_cycle_tracker_t
Source§fn from(value: AeronDutyCycleTracker) -> Self
fn from(value: AeronDutyCycleTracker) -> Self
Converts to this type from the input type.
Source§impl From<aeron_duty_cycle_tracker_stct> for AeronDutyCycleTracker
impl From<aeron_duty_cycle_tracker_stct> for AeronDutyCycleTracker
Source§fn from(value: aeron_duty_cycle_tracker_t) -> Self
fn from(value: aeron_duty_cycle_tracker_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronDutyCycleTracker
impl !RefUnwindSafe for AeronDutyCycleTracker
impl !Send for AeronDutyCycleTracker
impl !Sync for AeronDutyCycleTracker
impl Unpin for AeronDutyCycleTracker
impl !UnwindSafe for AeronDutyCycleTracker
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