pub struct RecoveryManager { /* private fields */ }Implementations§
Source§impl RecoveryManager
impl RecoveryManager
pub fn new(_shm_path: &str) -> RecoveryManager
pub fn is_already_running(&self) -> bool
pub fn register_daemon(&self) -> Result<(), String>
pub fn unregister_daemon(&self)
pub fn heartbeat(&self) -> &Arc<Heartbeat>
pub fn recover_stale_slots( &self, slots: &[SlotMetadata], timeout_seconds: u64, ) -> usize
pub fn cleanup_orphaned_shm(path: &str) -> Result<bool, String>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RecoveryManager
impl RefUnwindSafe for RecoveryManager
impl Send for RecoveryManager
impl Sync for RecoveryManager
impl Unpin for RecoveryManager
impl UnsafeUnpin for RecoveryManager
impl UnwindSafe for RecoveryManager
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