pub struct SessionReaper { /* private fields */ }Expand description
Background session reaper. Runs in its own thread, periodically scanning the coordinator for expired sessions.
Implementations§
Source§impl SessionReaper
impl SessionReaper
Sourcepub fn new(coordinator: Arc<Mutex<Coordinator>>, config: ReaperConfig) -> Self
pub fn new(coordinator: Arc<Mutex<Coordinator>>, config: ReaperConfig) -> Self
Create a new reaper for the given shared coordinator.
Auto Trait Implementations§
impl Freeze for SessionReaper
impl RefUnwindSafe for SessionReaper
impl Send for SessionReaper
impl Sync for SessionReaper
impl Unpin for SessionReaper
impl UnsafeUnpin for SessionReaper
impl UnwindSafe for SessionReaper
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