Struct quinn_proto::RandomConnectionIdGenerator
source · [−]pub struct RandomConnectionIdGenerator { /* private fields */ }Expand description
Generates purely random connection IDs of a certain length
Implementations
Trait Implementations
sourceimpl Clone for RandomConnectionIdGenerator
impl Clone for RandomConnectionIdGenerator
sourcefn clone(&self) -> RandomConnectionIdGenerator
fn clone(&self) -> RandomConnectionIdGenerator
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl ConnectionIdGenerator for RandomConnectionIdGenerator
impl ConnectionIdGenerator for RandomConnectionIdGenerator
sourcefn generate_cid(&mut self) -> ConnectionId
fn generate_cid(&mut self) -> ConnectionId
Generates a new CID Read more
sourcefn cid_lifetime(&self) -> Option<Duration>
fn cid_lifetime(&self) -> Option<Duration>
Returns the lifetime of generated Connection IDs Read more
sourceimpl Debug for RandomConnectionIdGenerator
impl Debug for RandomConnectionIdGenerator
sourceimpl Default for RandomConnectionIdGenerator
impl Default for RandomConnectionIdGenerator
impl Copy for RandomConnectionIdGenerator
Auto Trait Implementations
impl RefUnwindSafe for RandomConnectionIdGenerator
impl Send for RandomConnectionIdGenerator
impl Sync for RandomConnectionIdGenerator
impl Unpin for RandomConnectionIdGenerator
impl UnwindSafe for RandomConnectionIdGenerator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more