pub struct ErrorRecoveryManager { /* private fields */ }Expand description
Error recovery manager for NAT traversal operations
Implementations§
Source§impl ErrorRecoveryManager
impl ErrorRecoveryManager
Sourcepub async fn new(config: RecoveryConfig) -> Result<Self, MonitoringError>
pub async fn new(config: RecoveryConfig) -> Result<Self, MonitoringError>
Create new error recovery manager
Sourcepub async fn start(&self) -> Result<(), MonitoringError>
pub async fn start(&self) -> Result<(), MonitoringError>
Start error recovery manager
Sourcepub async fn stop(&self) -> Result<(), MonitoringError>
pub async fn stop(&self) -> Result<(), MonitoringError>
Stop error recovery manager
Sourcepub async fn initiate_recovery(
&self,
peer_id: PeerId,
error: NatTraversalError,
) -> Result<String, MonitoringError>
pub async fn initiate_recovery( &self, peer_id: PeerId, error: NatTraversalError, ) -> Result<String, MonitoringError>
Initiate error recovery for a failed NAT traversal
Sourcepub async fn get_recovery_statistics(&self) -> RecoveryStatistics
pub async fn get_recovery_statistics(&self) -> RecoveryStatistics
Get recovery statistics
Auto Trait Implementations§
impl Freeze for ErrorRecoveryManager
impl !RefUnwindSafe for ErrorRecoveryManager
impl Send for ErrorRecoveryManager
impl Sync for ErrorRecoveryManager
impl Unpin for ErrorRecoveryManager
impl !UnwindSafe for ErrorRecoveryManager
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