pub struct Tls {
pub provider: Option<TlsProvider>,
pub rustls: Rustls,
pub server: Option<TlsServer>,
pub client: Option<TlsClient>,
}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.
server: Option<TlsServer>Certificate to trust in the server, beside the platform store.
client: Option<TlsClient>Certificate presented when the server asks for one (mutual TLS).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Tls
impl Freeze for Tls
impl Move 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