pub struct RandomConnectionIdGenerator { /* private fields */ }
Expand description
Generates purely random connection IDs of a certain length
Implementations§
Trait Implementations§
Source§impl Clone for RandomConnectionIdGenerator
impl Clone for RandomConnectionIdGenerator
Source§fn clone(&self) -> RandomConnectionIdGenerator
fn clone(&self) -> RandomConnectionIdGenerator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ConnectionIdGenerator for RandomConnectionIdGenerator
impl ConnectionIdGenerator for RandomConnectionIdGenerator
Source§fn generate(&mut self) -> ConnectionId
fn generate(&mut self) -> ConnectionId
Generate a new CID
Source§fn 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.
Source§impl Debug for RandomConnectionIdGenerator
impl Debug for RandomConnectionIdGenerator
impl Copy for RandomConnectionIdGenerator
Auto Trait Implementations§
impl Freeze for RandomConnectionIdGenerator
impl RefUnwindSafe for RandomConnectionIdGenerator
impl Send for RandomConnectionIdGenerator
impl Sync for RandomConnectionIdGenerator
impl Unpin for RandomConnectionIdGenerator
impl UnwindSafe for RandomConnectionIdGenerator
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