pub struct StaleConnectionManager { /* private fields */ }Implementations§
Source§impl StaleConnectionManager
impl StaleConnectionManager
pub fn new(config: Config) -> Self
pub async fn add_missed_packet( &self, client_id: u64, packet: TaggedPacket, limit: usize, ) -> Result<()>
pub async fn add_stale_client( &self, client_id: u64, encryption: Encryption, disconnected: Instant, )
pub async fn remove_stale_client(&self, client_id: u64) -> Option<StaleClient>
pub async fn has_client(&self, client_id: u64) -> bool
pub async fn run_cleanup(self, on_remove: Sender<Vec<u64>>)
Trait Implementations§
Source§impl Clone for StaleConnectionManager
impl Clone for StaleConnectionManager
Source§fn clone(&self) -> StaleConnectionManager
fn clone(&self) -> StaleConnectionManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for StaleConnectionManager
impl !UnwindSafe for StaleConnectionManager
impl Freeze for StaleConnectionManager
impl Send for StaleConnectionManager
impl Sync for StaleConnectionManager
impl Unpin for StaleConnectionManager
impl UnsafeUnpin for StaleConnectionManager
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