pub struct Builder { /* private fields */ }
Expand description
A builder for Format
providers
Implementations§
source§impl Builder
impl Builder
sourcepub fn with_len(self, len: usize) -> Result<Self, Error>
pub fn with_len(self, len: usize) -> Result<Self, Error>
Sets the length of the generated connection Id
sourcepub fn with_lifetime(self, lifetime: Duration) -> Result<Self, Error>
pub fn with_lifetime(self, lifetime: Duration) -> Result<Self, Error>
Sets the lifetime of each generated connection Id
sourcepub fn with_handshake_connection_id_rotation(
self,
enabled: bool
) -> Result<Self, Infallible>
pub fn with_handshake_connection_id_rotation( self, enabled: bool ) -> Result<Self, Infallible>
Enables/disables rotation of the connection Id used during the handshake (default: enabled)
When enabled (the 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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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