pub struct TimeoutMonitor { /* private fields */ }
Expand description
Infrastructure service for monitoring connection timeouts
Implementations§
Source§impl TimeoutMonitor
impl TimeoutMonitor
pub fn new(connection_manager: Arc<ConnectionManager>) -> Self
pub fn with_interval( connection_manager: Arc<ConnectionManager>, interval: Duration, ) -> Self
Sourcepub fn start(self) -> JoinHandle<()>
pub fn start(self) -> JoinHandle<()>
Start the timeout monitoring task
Auto Trait Implementations§
impl Freeze for TimeoutMonitor
impl !RefUnwindSafe for TimeoutMonitor
impl Send for TimeoutMonitor
impl Sync for TimeoutMonitor
impl Unpin for TimeoutMonitor
impl !UnwindSafe for TimeoutMonitor
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