/// Reregister the session given its token
Reregister the session given its token
Reregister the session given its token
fn reregister(&mut self, token: Token) {
        trace!("reregistering session: {}", token.0);
        if let Some(session) = self.sessions.get_mut(token.0) {
            if session.reregister(&self.poll).is_err() {
                error!("Failed to reregister");
                self.close(token);
            }
        } else {
            trace!("attempted to reregister non-existent session: {}", token.0);
        }
    }
fn reregister ( & mut self , token : Token ) { trace ! ( " " token 0 ) ; if let Some ( session ) = self . sessions . get_mut ( token . 0 ) { if session . reregister ( & self . poll ) . is_err ( ) { error ! ( " " ) ; self . close ( token ) ; } } else { trace ! ( " " token 0 ) ; } }
Reregister the session given its token
Reregister the session given its token
&mut self
token
Token