pub struct TlsConfig {
pub ca: Option<PathBuf>,
pub skip_verify: bool,
pub cert: PathBuf,
pub key: PathBuf,
}
Expand description
TLS identity settings for the QUIC endpoint.
Fields§
§ca: Option<PathBuf>
Trusted root CA certificates to verify the certificate of the peer against.
Default: use system root CA store
skip_verify: bool
Skip verification of the peer certificate. Dangerous.
Default: false
cert: PathBuf
Path to certificate to present to peers.
Required
key: PathBuf
Path to certificate’s private key.
Required
Trait Implementations§
source§impl<'de> Deserialize<'de> for TlsConfig
impl<'de> Deserialize<'de> for TlsConfig
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
Auto Trait Implementations§
impl RefUnwindSafe for TlsConfig
impl Send for TlsConfig
impl Sync for TlsConfig
impl Unpin for TlsConfig
impl UnwindSafe for TlsConfig
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