pub struct SimpleConnectionIdGenerator;
Expand description
A ConnectionIdGenerator
which creates random 20-byte connection IDs.
Random bytes are pulled directly from the operating system to create an ID.
Any socket_cookie
value is ignored.
Trait Implementations§
Source§impl Clone for SimpleConnectionIdGenerator
impl Clone for SimpleConnectionIdGenerator
Source§fn clone(&self) -> SimpleConnectionIdGenerator
fn clone(&self) -> SimpleConnectionIdGenerator
Returns a copy 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<'static> for SimpleConnectionIdGenerator
impl ConnectionIdGenerator<'static> for SimpleConnectionIdGenerator
Source§fn verify_connection_id(
&self,
_socket_cookie: u64,
_cid: &ConnectionId<'_>,
) -> QuicResult<()>
fn verify_connection_id( &self, _socket_cookie: u64, _cid: &ConnectionId<'_>, ) -> QuicResult<()>
Performs no verification, because this generator can create any valid connection ID.
Source§fn new_connection_id(&self, _socket_cookie: u64) -> ConnectionId<'static>
fn new_connection_id(&self, _socket_cookie: u64) -> ConnectionId<'static>
Creates a new [
ConnectionId
] according to the generator’s logic. Read moreSource§impl Debug for SimpleConnectionIdGenerator
impl Debug for SimpleConnectionIdGenerator
Source§impl Default for SimpleConnectionIdGenerator
impl Default for SimpleConnectionIdGenerator
Source§fn default() -> SimpleConnectionIdGenerator
fn default() -> SimpleConnectionIdGenerator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimpleConnectionIdGenerator
impl RefUnwindSafe for SimpleConnectionIdGenerator
impl Send for SimpleConnectionIdGenerator
impl Sync for SimpleConnectionIdGenerator
impl Unpin for SimpleConnectionIdGenerator
impl UnwindSafe for SimpleConnectionIdGenerator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more