fn check_timeout(&mut self, t: std::time::SystemTime) -> bool {
        if let Ok(dur) = t.elapsed() {
            if dur.as_secs() > MAX_HANDSHAKE_WAIT_TIME {
                self.reset_state(None);
                return true
            }
        }
        false
    }
/// Indicate if handshake has timed out, and reset state if it has
/// Resetting the state will trigger a reset packet to be sent.
Indicate if handshake has timed out, and reset state if it has
Resetting the state will trigger a reset packet to be sent.
Indicate if handshake has timed out and reset state if it has Resetting the state will trigger a reset packet to be sent .
fn check_timeout(&mut self, t: std::time::SystemTime) -> bool {
        if let Ok(dur) = t.elapsed() {
            if dur.as_secs() > MAX_HANDSHAKE_WAIT_TIME {
                self.reset_state(None);
                return true
            }
        }
        false
    }
fn check_timeout ( & mut self , t : std :: time :: SystemTime ) -> bool { if let Ok ( dur ) = t . elapsed ( ) { if dur . as_secs ( ) > MAX_HANDSHAKE_WAIT_TIME { self . reset_state ( None ) ; return true } } false }
Indicate if handshake has timed out, and reset state if it has
Resetting the state will trigger a reset packet to be sent.
Indicate if handshake has timed out and reset state if it has Resetting the state will trigger a reset packet to be sent .
&mut self
t
std::time::SystemTime
&mut self
t
std::time::SystemTime