pub trait ConnectionIdGenerator {
// Required methods
fn generate(&mut self) -> ConnectionId;
fn cid_len(&self) -> usize;
// Provided method
fn generate_cid_and_token(
&mut self,
reset_token_key: &Key,
) -> (ConnectionId, u128) { ... }
}Expand description
Generate QUIC connection ID
Required Methods§
Sourcefn generate(&mut self) -> ConnectionId
fn generate(&mut self) -> ConnectionId
Generate a new CID
Provided Methods§
Sourcefn generate_cid_and_token(
&mut self,
reset_token_key: &Key,
) -> (ConnectionId, u128)
fn generate_cid_and_token( &mut self, reset_token_key: &Key, ) -> (ConnectionId, u128)
Generate a new CID and associated reset token.