pub struct Format { /* private fields */ }
Expand description
Randomly generated connection Id format.
By default, connection Ids of length 16 bytes are generated.
Implementations§
Trait Implementations§
source§impl Generator for Format
impl Generator for Format
source§fn generate(&mut self, _connection_info: &ConnectionInfo<'_>) -> LocalId
fn generate(&mut self, _connection_info: &ConnectionInfo<'_>) -> LocalId
Generates a connection ID. Read more
source§fn lifetime(&self) -> Option<Duration>
fn lifetime(&self) -> Option<Duration>
The maximum amount of time each generated connection ID should be
used for. By default there is no maximum, though connection IDs
may be retired due to rotation requirements or peer requests.
source§fn rotate_handshake_connection_id(&self) -> bool
fn rotate_handshake_connection_id(&self) -> bool
If true (default), the connection ID used during the the handshake
will be requested to be retired following confirmation of the handshake
completing. This reduces linkability between information exchanged
during and after the handshake.
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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