#[non_exhaustive]pub enum QuicBackend {
Quinn,
}Expand description
The QUIC backend to use for connections.
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.
Quinn
Implementations§
Source§impl QuicBackend
impl QuicBackend
Sourcepub fn compiled() -> &'static [Self]
pub fn compiled() -> &'static [Self]
Every backend this build was compiled with, spelled the way FromStr accepts.
The variants are feature-gated, so this is the only honest answer to “what can I pass here”. A caller building a menu should read it rather than listing the three names, which would offer options that cannot parse.
Trait Implementations§
Source§impl Clone for QuicBackend
impl Clone for QuicBackend
Source§fn clone(&self) -> QuicBackend
fn clone(&self) -> QuicBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuicBackend
impl Debug for QuicBackend
Source§impl<'de> Deserialize<'de> for QuicBackend
impl<'de> Deserialize<'de> for QuicBackend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for QuicBackend
Parses the same spellings the CLI and TOML accept (quinn, quiche, noq),
case-insensitively. A backend this build was compiled without is an error, since
its variant doesn’t exist.
impl FromStr for QuicBackend
Parses the same spellings the CLI and TOML accept (quinn, quiche, noq),
case-insensitively. A backend this build was compiled without is an error, since
its variant doesn’t exist.
Source§impl Serialize for QuicBackend
impl Serialize for QuicBackend
Source§impl ValueEnum for QuicBackend
impl ValueEnum for QuicBackend
Auto Trait Implementations§
impl Freeze for QuicBackend
impl RefUnwindSafe for QuicBackend
impl Send for QuicBackend
impl Sync for QuicBackend
impl Unpin for QuicBackend
impl UnsafeUnpin for QuicBackend
impl UnwindSafe for QuicBackend
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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