pub struct Tls {
pub provider: Option<TlsProvider>,
pub rustls: Rustls,
pub cert: Option<PathBuf>,
}Available on crate feature
client and (crate features native-tls or rustls-aws or rustls-ring) only.Expand description
TLS backend selection re-exported from pimalaya-stream, feeding
MsgraphClientStdConnectOptions::tls.
TLS settings shared by both backends.
Fields§
§provider: Option<TlsProvider>TLS backend selector. None falls back to the first enabled feature
in this order: rustls-ring, rustls-aws, native-tls.
rustls: RustlsRustls-specific options. Ignored when the resolved provider is
TlsProvider::NativeTls.
cert: Option<PathBuf>Optional certificate to trust, as a path to a PEM file.
Under rustls it is pinned to the server’s leaf (e.g. Proton Bridge), else used as an extra trust anchor; under native-tls, a root certificate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tls
impl RefUnwindSafe for Tls
impl Send for Tls
impl Sync for Tls
impl Unpin for Tls
impl UnsafeUnpin for Tls
impl UnwindSafe for Tls
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