pub struct ClientQuicConfig {
source: ClientSource,
server_name: String,
config: QuicConfig,
}Expand description
Client-side QUIC configuration. Build from either a root cert list
(new) or a pre-built rustls config (from_rustls).
Fields§
§source: ClientSource§server_name: String§config: QuicConfigImplementations§
Source§impl ClientQuicConfig
impl ClientQuicConfig
Sourcepub fn new(
root_certs: Vec<CertificateDer<'static>>,
server_name: impl Into<String>,
) -> Self
pub fn new( root_certs: Vec<CertificateDer<'static>>, server_name: impl Into<String>, ) -> Self
Create a config from a list of trusted root certs + server name.
Sourcepub fn from_rustls(
rustls_config: ClientConfig,
server_name: impl Into<String>,
) -> Self
pub fn from_rustls( rustls_config: ClientConfig, server_name: impl Into<String>, ) -> Self
Create a config from a pre-built rustls ClientConfig + server name
(for custom verifiers, client-auth certs, etc).
Sourcepub fn with_config(self, config: QuicConfig) -> Self
pub fn with_config(self, config: QuicConfig) -> Self
Override the QUIC transport parameters.
pub fn server_name(&self) -> &str
pub(crate) fn build(self) -> Result<ClientConfig>
Trait Implementations§
Source§impl Clone for ClientQuicConfig
impl Clone for ClientQuicConfig
Source§fn clone(&self) -> ClientQuicConfig
fn clone(&self) -> ClientQuicConfig
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 moreAuto Trait Implementations§
impl Freeze for ClientQuicConfig
impl !RefUnwindSafe for ClientQuicConfig
impl Send for ClientQuicConfig
impl Sync for ClientQuicConfig
impl Unpin for ClientQuicConfig
impl UnsafeUnpin for ClientQuicConfig
impl !UnwindSafe for ClientQuicConfig
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