Struct rusteron_media_driver::AeronLossDetector
source · pub struct AeronLossDetector { /* private fields */ }
Implementations§
source§impl AeronLossDetector
impl AeronLossDetector
pub fn new( on_gap_detected: aeron_term_gap_scanner_on_gap_detected_func_t, feedback_delay_state: &AeronFeedbackDelayGeneratorState, on_gap_detected_clientd: *mut c_void, scanned_gap: AeronLossDetectorGap, active_gap: AeronLossDetectorGap, expiry_ns: i64, ) -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
pub fn on_gap_detected(&self) -> aeron_term_gap_scanner_on_gap_detected_func_t
pub fn feedback_delay_state(&self) -> AeronFeedbackDelayGeneratorState
pub fn on_gap_detected_clientd(&self) -> *mut c_void
pub fn scanned_gap(&self) -> AeronLossDetectorGap
pub fn active_gap(&self) -> AeronLossDetectorGap
pub fn expiry_ns(&self) -> i64
pub fn init<AeronTermGapScannerGapDetectedFuncHandlerImpl: AeronTermGapScannerGapDetectedFuncCallback>( &self, feedback_delay_state: &AeronFeedbackDelayGeneratorState, on_gap_detected: Option<&Handler<AeronTermGapScannerGapDetectedFuncHandlerImpl>>, ) -> Result<i32, AeronCError>
pub fn scan( &self, loss_found: &mut bool, buffer: *const u8, rebuild_position: i64, hwm_position: i64, now_ns: i64, term_length_mask: usize, position_bits_to_shift: usize, initial_term_id: i32, ) -> i32
pub fn get_inner(&self) -> *mut aeron_loss_detector_t
Trait Implementations§
source§impl Clone for AeronLossDetector
impl Clone for AeronLossDetector
source§fn clone(&self) -> AeronLossDetector
fn clone(&self) -> AeronLossDetector
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 AeronLossDetector
impl Debug for AeronLossDetector
source§impl Default for AeronLossDetector
impl Default for AeronLossDetector
This will create an instance where the struct is zeroed, use with care
source§impl Deref for AeronLossDetector
impl Deref for AeronLossDetector
source§impl From<&AeronLossDetector> for *mut aeron_loss_detector_t
impl From<&AeronLossDetector> for *mut aeron_loss_detector_t
source§fn from(value: &AeronLossDetector) -> Self
fn from(value: &AeronLossDetector) -> Self
Converts to this type from the input type.
source§impl From<*const aeron_loss_detector_stct> for AeronLossDetector
impl From<*const aeron_loss_detector_stct> for AeronLossDetector
source§fn from(value: *const aeron_loss_detector_t) -> Self
fn from(value: *const aeron_loss_detector_t) -> Self
Converts to this type from the input type.
source§impl From<*mut aeron_loss_detector_stct> for AeronLossDetector
impl From<*mut aeron_loss_detector_stct> for AeronLossDetector
source§fn from(value: *mut aeron_loss_detector_t) -> Self
fn from(value: *mut aeron_loss_detector_t) -> Self
Converts to this type from the input type.
source§impl From<AeronLossDetector> for *mut aeron_loss_detector_t
impl From<AeronLossDetector> for *mut aeron_loss_detector_t
source§fn from(value: AeronLossDetector) -> Self
fn from(value: AeronLossDetector) -> Self
Converts to this type from the input type.
source§impl From<AeronLossDetector> for aeron_loss_detector_t
impl From<AeronLossDetector> for aeron_loss_detector_t
source§fn from(value: AeronLossDetector) -> Self
fn from(value: AeronLossDetector) -> Self
Converts to this type from the input type.
source§impl From<aeron_loss_detector_stct> for AeronLossDetector
impl From<aeron_loss_detector_stct> for AeronLossDetector
source§fn from(value: aeron_loss_detector_t) -> Self
fn from(value: aeron_loss_detector_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AeronLossDetector
impl !RefUnwindSafe for AeronLossDetector
impl !Send for AeronLossDetector
impl !Sync for AeronLossDetector
impl Unpin for AeronLossDetector
impl !UnwindSafe for AeronLossDetector
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
)