pub struct RecoveryMonitor { /* private fields */ }Expand description
Monitor that enforces deterministic recovery transitions.
Implementations§
Source§impl RecoveryMonitor
impl RecoveryMonitor
Sourcepub fn feed(&mut self, conditions: &NetworkConditions) -> Option<RecoveryEvent>
pub fn feed(&mut self, conditions: &NetworkConditions) -> Option<RecoveryEvent>
Feeds fresh metrics and returns a matching recovery event, if any.
Sourcepub fn is_recovering(&self) -> bool
pub fn is_recovering(&self) -> bool
Returns true while recovery is active so callers can force keyframes.
Sourcepub fn active_reason(&self) -> Option<RecoveryReason>
pub fn active_reason(&self) -> Option<RecoveryReason>
Returns the active recovery reason, if present.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecoveryMonitor
impl RefUnwindSafe for RecoveryMonitor
impl Send for RecoveryMonitor
impl Sync for RecoveryMonitor
impl Unpin for RecoveryMonitor
impl UnwindSafe for RecoveryMonitor
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