pub struct ClientConfig {
pub draft: DraftVersion,
pub additional_versions: Vec<DraftVersion>,
pub transport: TransportType,
pub skip_cert_verification: bool,
pub ca_certs: Vec<Vec<u8>>,
pub setup_parameters: Vec<KeyValuePair>,
}Expand description
Configuration for a MoQT client connection.
Both draft and transport are required — there is no Default impl.
Fields§
§draft: DraftVersionThe MoQT draft version to use (primary, determines codec/framing).
additional_versions: Vec<DraftVersion>Additional draft versions to offer in CLIENT_SETUP.
The primary draft is always included first.
transport: TransportTypeThe transport 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).
Implementations§
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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