Struct rusteron_client::AeronCnc
source · pub struct AeronCnc { /* private fields */ }
Implementations§
source§impl AeronCnc
impl AeronCnc
pub fn new_zeroed() -> Result<Self, AeronCError>
sourcepub fn constants(
&self,
constants: &AeronCncConstants,
) -> Result<i32, AeronCError>
pub fn constants( &self, constants: &AeronCncConstants, ) -> Result<i32, AeronCError>
sourcepub fn to_driver_heartbeat(&self) -> i64
pub fn to_driver_heartbeat(&self) -> i64
Gets the timestamp of the last heartbeat sent to the media driver from any client.
§Return
last heartbeat timestamp in ms.
sourcepub fn error_log_read<AeronErrorLogReaderFuncHandlerImpl: AeronErrorLogReaderFuncCallback>(
&self,
callback: Option<&Handler<AeronErrorLogReaderFuncHandlerImpl>>,
since_timestamp: i64,
) -> usize
pub fn error_log_read<AeronErrorLogReaderFuncHandlerImpl: AeronErrorLogReaderFuncCallback>( &self, callback: Option<&Handler<AeronErrorLogReaderFuncHandlerImpl>>, since_timestamp: i64, ) -> usize
sourcepub fn counters_reader(&self) -> AeronCountersReader
pub fn counters_reader(&self) -> AeronCountersReader
Gets a counters reader for this command and control file. This does not need to be closed manually, resources are tied to the instance of aeron_cnc.
§Return
pointer to a counters reader.
sourcepub fn loss_reporter_read<AeronLossReporterReadEntryFuncHandlerImpl: AeronLossReporterReadEntryFuncCallback>(
&self,
entry_func: Option<&Handler<AeronLossReporterReadEntryFuncHandlerImpl>>,
) -> Result<i32, AeronCError>
pub fn loss_reporter_read<AeronLossReporterReadEntryFuncHandlerImpl: AeronLossReporterReadEntryFuncCallback>( &self, entry_func: Option<&Handler<AeronLossReporterReadEntryFuncHandlerImpl>>, ) -> Result<i32, AeronCError>
pub fn get_inner(&self) -> *mut aeron_cnc_t
Trait Implementations§
source§impl From<*const aeron_cnc_stct> for AeronCnc
impl From<*const aeron_cnc_stct> for AeronCnc
source§fn from(value: *const aeron_cnc_t) -> Self
fn from(value: *const aeron_cnc_t) -> Self
Converts to this type from the input type.
source§impl From<*mut aeron_cnc_stct> for AeronCnc
impl From<*mut aeron_cnc_stct> for AeronCnc
source§fn from(value: *mut aeron_cnc_t) -> Self
fn from(value: *mut aeron_cnc_t) -> Self
Converts to this type from the input type.
source§impl From<AeronCnc> for aeron_cnc_t
impl From<AeronCnc> for aeron_cnc_t
source§impl From<aeron_cnc_stct> for AeronCnc
impl From<aeron_cnc_stct> for AeronCnc
source§fn from(value: aeron_cnc_t) -> Self
fn from(value: aeron_cnc_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronCnc
impl !RefUnwindSafe for AeronCnc
impl !Send for AeronCnc
impl !Sync for AeronCnc
impl Unpin for AeronCnc
impl !UnwindSafe for AeronCnc
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
)