#[non_exhaustive]pub enum QuicVersion {
V1Draft29,
V1Draft30,
V1Draft31,
V1Draft32,
V1Draft33,
V1Draft34,
V1,
}
Expand description
QUIC protocol version
Governs version-specific behavior in the TLS layer
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl QuicVersion
impl QuicVersion
Sourcepub fn default_supported_versions() -> Vec<u32>
pub fn default_supported_versions() -> Vec<u32>
Returns the default list of supported quic versions.
Trait Implementations§
Source§impl Clone for QuicVersion
impl Clone for QuicVersion
Source§fn clone(&self) -> QuicVersion
fn clone(&self) -> QuicVersion
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 Debug for QuicVersion
impl Debug for QuicVersion
Source§impl Default for QuicVersion
impl Default for QuicVersion
Source§impl PartialEq for QuicVersion
impl PartialEq for QuicVersion
impl Copy for QuicVersion
impl Eq for QuicVersion
impl StructuralPartialEq for QuicVersion
Auto Trait Implementations§
impl Freeze for QuicVersion
impl RefUnwindSafe for QuicVersion
impl Send for QuicVersion
impl Sync for QuicVersion
impl Unpin for QuicVersion
impl UnwindSafe for QuicVersion
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.