pub(crate) fn ok_for_0rtt(&self, remembered: &Self) -> bool {
        for (k, v_rem) in &remembered.params {
            // Skip checks for these, which don't affect 0-RTT.
            if matches!(
                *k,
                ORIGINAL_DESTINATION_CONNECTION_ID
                    | INITIAL_SOURCE_CONNECTION_ID
                    | RETRY_SOURCE_CONNECTION_ID
                    | STATELESS_RESET_TOKEN
                    | IDLE_TIMEOUT
                    | ACK_DELAY_EXPONENT
                    | MAX_ACK_DELAY
                    | ACTIVE_CONNECTION_ID_LIMIT
                    | PREFERRED_ADDRESS
            ) {
                continue;
            }
            let ok = if let Some(v_self) = self.params.get(k) {
                match (v_self, v_rem) {
                    (TransportParameter::Integer(i_self), TransportParameter::Integer(i_rem)) => {
                        if *k == MIN_ACK_DELAY {
                            // MIN_ACK_DELAY is backwards:
                            // it can only be reduced safely.
                            *i_self <= *i_rem
                        } else {
                            *i_self >= *i_rem
                        }
                    }
                    (TransportParameter::Empty, TransportParameter::Empty) => true,
                    (
                        TransportParameter::Versions {
                            current: v_self, ..
                        },
                        TransportParameter::Versions { current: v_rem, .. },
                    ) => v_self == v_rem,
                    _ => false,
                }
            } else {
                false
            };
            if !ok {
                return false;
            }
        }
        true
    }
/// Return true if the remembered transport parameters are OK for 0-RTT.
/// Generally this means that any value that is currently in effect is greater than
/// or equal to the promised value.
Return true if the remembered transport parameters are OK for 0-RTT.
Generally this means that any value that is currently in effect is greater than
or equal to the promised value.
Return true if the remembered transport parameters are OK for 0 - RTT . Generally this means that any value that is currently in effect is greater than or equal to the promised value .
pub(crate) fn ok_for_0rtt(&self, remembered: &Self) -> bool {
        for (k, v_rem) in &remembered.params {
            // Skip checks for these, which don't affect 0-RTT.
            if matches!(
                *k,
                ORIGINAL_DESTINATION_CONNECTION_ID
                    | INITIAL_SOURCE_CONNECTION_ID
                    | RETRY_SOURCE_CONNECTION_ID
                    | STATELESS_RESET_TOKEN
                    | IDLE_TIMEOUT
                    | ACK_DELAY_EXPONENT
                    | MAX_ACK_DELAY
                    | ACTIVE_CONNECTION_ID_LIMIT
                    | PREFERRED_ADDRESS
            ) {
                continue;
            }
            let ok = if let Some(v_self) = self.params.get(k) {
                match (v_self, v_rem) {
                    (TransportParameter::Integer(i_self), TransportParameter::Integer(i_rem)) => {
                        if *k == MIN_ACK_DELAY {
                            // MIN_ACK_DELAY is backwards:
                            // it can only be reduced safely.
                            *i_self <= *i_rem
                        } else {
                            *i_self >= *i_rem
                        }
                    }
                    (TransportParameter::Empty, TransportParameter::Empty) => true,
                    (
                        TransportParameter::Versions {
                            current: v_self, ..
                        },
                        TransportParameter::Versions { current: v_rem, .. },
                    ) => v_self == v_rem,
                    _ => false,
                }
            } else {
                false
            };
            if !ok {
                return false;
            }
        }
        true
    }
pub ( crate ) fn ok_for_0rtt ( & self , remembered : & Self ) -> bool { for ( k , v_rem ) in & remembered . params { // Skip checks for these, which don't affect 0-RTT. if matches ! ( k ORIGINAL_DESTINATION_CONNECTION_ID INITIAL_SOURCE_CONNECTION_ID RETRY_SOURCE_CONNECTION_ID STATELESS_RESET_TOKEN IDLE_TIMEOUT ACK_DELAY_EXPONENT MAX_ACK_DELAY ACTIVE_CONNECTION_ID_LIMIT PREFERRED_ADDRESS ) { continue ; } let ok = if let Some ( v_self ) = self . params . get ( k ) { match ( v_self , v_rem ) { ( TransportParameter :: Integer ( i_self ) , TransportParameter :: Integer ( i_rem ) ) => { if * k == MIN_ACK_DELAY { // MIN_ACK_DELAY is backwards: // it can only be reduced safely. * i_self <= * i_rem } else { * i_self >= * i_rem } } ( TransportParameter :: Empty , TransportParameter :: Empty ) => true , ( TransportParameter :: Versions { current : v_self , .. } , TransportParameter :: Versions { current : v_rem , .. } , ) => v_self == v_rem , _ => false , } } else { false } ; if ! ok { return false ; } } true }
Return true if the remembered transport parameters are OK for 0-RTT.
Return true if the remembered transport parameters are OK for 0 - RTT .
&self
remembered
&Self