pub struct WaiterCleaner<'a> { /* private fields */ }Expand description
RAII guard for automatic cleanup of waiter entries.
When a WaiterCleaner is dropped, it removes the associated message ID
from the waiter’s map, preventing memory leaks for requests that don’t
receive responses.
Trait Implementations§
Source§impl Drop for WaiterCleaner<'_>
impl Drop for WaiterCleaner<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for WaiterCleaner<'a>
impl<'a> !UnwindSafe for WaiterCleaner<'a>
impl<'a> Freeze for WaiterCleaner<'a>
impl<'a> Send for WaiterCleaner<'a>
impl<'a> Sync for WaiterCleaner<'a>
impl<'a> Unpin for WaiterCleaner<'a>
impl<'a> UnsafeUnpin for WaiterCleaner<'a>
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