pub struct AnyClientConfig {
pub draft: DraftVersion,
pub additional_versions: Vec<DraftVersion>,
pub transport: AnyTransportType,
pub skip_cert_verification: bool,
pub ca_certs: Vec<Vec<u8>>,
pub setup_parameters: Vec<KeyValuePair>,
}Expand description
Draft-agnostic client configuration. The exact per-draft ClientConfig
is constructed internally by AnyConnection::connect based on draft.
Fields that aren’t meaningful for the selected draft are ignored:
additional_versions is not carried by drafts 15–17 (single-version
setup) and drafts 07–13 always offer their own draft first.
Fields§
§draft: DraftVersionPrimary draft version for the connection.
additional_versions: Vec<DraftVersion>Additional draft versions to offer in CLIENT_SETUP.
transport: AnyTransportTypeTransport type (QUIC or WebTransport).
skip_cert_verification: boolWhether to skip TLS certificate verification (for testing).
ca_certs: Vec<Vec<u8>>Custom CA certificates to trust (DER-encoded).
setup_parameters: Vec<KeyValuePair>Setup parameters to include in CLIENT_SETUP (e.g., auth tokens).
Trait Implementations§
Source§impl Clone for AnyClientConfig
impl Clone for AnyClientConfig
Source§fn clone(&self) -> AnyClientConfig
fn clone(&self) -> AnyClientConfig
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 moreAuto Trait Implementations§
impl Freeze for AnyClientConfig
impl RefUnwindSafe for AnyClientConfig
impl Send for AnyClientConfig
impl Sync for AnyClientConfig
impl Unpin for AnyClientConfig
impl UnsafeUnpin for AnyClientConfig
impl UnwindSafe for AnyClientConfig
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