pub struct QuicDialOptions {
pub skip_cert_verification: bool,
pub ca_certs: Vec<Vec<u8>>,
pub alpn: Vec<Vec<u8>>,
}Expand description
How a QUIC dial is configured, independent of any draft.
alpn is a list because ALPN is: one handshake offers several protocols and
the server picks, which is how a caller that does not know a peer’s draft
finds out without dialling once per candidate.
Fields§
§skip_cert_verification: boolSkip TLS certificate verification. Testing only.
ca_certs: Vec<Vec<u8>>Additional CA certificates to trust, DER-encoded.
alpn: Vec<Vec<u8>>ALPN protocols to offer, in preference order.
dial_quic returns the one the server selected. An empty list offers
nothing and is refused by any peer that requires ALPN, which every MoQT
relay does.
Auto Trait Implementations§
impl Freeze for QuicDialOptions
impl RefUnwindSafe for QuicDialOptions
impl Send for QuicDialOptions
impl Sync for QuicDialOptions
impl Unpin for QuicDialOptions
impl UnsafeUnpin for QuicDialOptions
impl UnwindSafe for QuicDialOptions
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