Struct rusteron_media_driver::AeronClockCache
source · pub struct AeronClockCache { /* private fields */ }
Implementations§
source§impl AeronClockCache
impl AeronClockCache
pub fn new_zeroed() -> Result<Self, AeronCError>
pub fn pre_pad(&self) -> [u8; 56]
pub fn cached_epoch_time(&self) -> i64
pub fn cached_nano_time(&self) -> i64
pub fn post_pad(&self) -> [u8; 56]
sourcepub fn aeron_clock_update_cached_time(&self, epoch_time: i64, nano_time: i64)
pub fn aeron_clock_update_cached_time(&self, epoch_time: i64, nano_time: i64)
Update the cached clock with the current epoch and nano time values.
§Parameters
-
epoch_time
current ms since epoch. -
nano_time
current ns time.
sourcepub fn aeron_clock_update_cached_epoch_time(&self, epoch_time: i64)
pub fn aeron_clock_update_cached_epoch_time(&self, epoch_time: i64)
Update the cached clock with the current epoch time value.
§Parameters
epoch_time
current ms since epoch.
sourcepub fn aeron_clock_update_cached_nano_time(&self, nano_time: i64)
pub fn aeron_clock_update_cached_nano_time(&self, nano_time: i64)
sourcepub fn aeron_clock_cached_epoch_time(&self) -> i64
pub fn aeron_clock_cached_epoch_time(&self) -> i64
Retrieves the cached epoch time from supplied cached clock.
§Return
The current cached value for the epoch time.
sourcepub fn aeron_clock_cached_nano_time(&self) -> i64
pub fn aeron_clock_cached_nano_time(&self) -> i64
Retrieves the cached nano time from supplied cached clock.
§Return
The current cached value for the nano time.
pub fn get_inner(&self) -> *mut aeron_clock_cache_t
Trait Implementations§
source§impl Clone for AeronClockCache
impl Clone for AeronClockCache
source§fn clone(&self) -> AeronClockCache
fn clone(&self) -> AeronClockCache
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 AeronClockCache
impl Debug for AeronClockCache
source§impl Deref for AeronClockCache
impl Deref for AeronClockCache
source§impl From<&AeronClockCache> for *mut aeron_clock_cache_t
impl From<&AeronClockCache> for *mut aeron_clock_cache_t
source§fn from(value: &AeronClockCache) -> Self
fn from(value: &AeronClockCache) -> Self
Converts to this type from the input type.
source§impl From<*const aeron_clock_cache_stct> for AeronClockCache
impl From<*const aeron_clock_cache_stct> for AeronClockCache
source§fn from(value: *const aeron_clock_cache_t) -> Self
fn from(value: *const aeron_clock_cache_t) -> Self
Converts to this type from the input type.
source§impl From<*mut aeron_clock_cache_stct> for AeronClockCache
impl From<*mut aeron_clock_cache_stct> for AeronClockCache
source§fn from(value: *mut aeron_clock_cache_t) -> Self
fn from(value: *mut aeron_clock_cache_t) -> Self
Converts to this type from the input type.
source§impl From<AeronClockCache> for *mut aeron_clock_cache_t
impl From<AeronClockCache> for *mut aeron_clock_cache_t
source§fn from(value: AeronClockCache) -> Self
fn from(value: AeronClockCache) -> Self
Converts to this type from the input type.
source§impl From<AeronClockCache> for aeron_clock_cache_t
impl From<AeronClockCache> for aeron_clock_cache_t
source§fn from(value: AeronClockCache) -> Self
fn from(value: AeronClockCache) -> Self
Converts to this type from the input type.
source§impl From<aeron_clock_cache_stct> for AeronClockCache
impl From<aeron_clock_cache_stct> for AeronClockCache
source§fn from(value: aeron_clock_cache_t) -> Self
fn from(value: aeron_clock_cache_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronClockCache
impl !RefUnwindSafe for AeronClockCache
impl !Send for AeronClockCache
impl !Sync for AeronClockCache
impl Unpin for AeronClockCache
impl !UnwindSafe for AeronClockCache
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
)