pub struct SslOpts { /* private fields */ }
Expand description
Ssl Options.
Implementations§
Source§impl SslOpts
impl SslOpts
Sourcepub fn with_root_cert_path<T: Into<Cow<'static, Path>>>(
self,
root_cert_path: Option<T>,
) -> Self
pub fn with_root_cert_path<T: Into<Cow<'static, Path>>>( self, root_cert_path: Option<T>, ) -> Self
Sets path to a certificate of the root that connector will trust.
Supported certificate formats are .der and .pem. Multiple certs are allowed in .pem files.
Sourcepub fn with_danger_skip_domain_validation(self, value: bool) -> Self
pub fn with_danger_skip_domain_validation(self, value: bool) -> Self
The way to not validate the server’s domain
name against its certificate (defaults to false
).
Sourcepub fn with_danger_accept_invalid_certs(self, value: bool) -> Self
pub fn with_danger_accept_invalid_certs(self, value: bool) -> Self
If true
then client will accept invalid certificate (expired, not trusted, ..)
(defaults to false
).
pub fn root_cert_path(&self) -> Option<&Path>
pub fn skip_domain_validation(&self) -> bool
pub fn accept_invalid_certs(&self) -> bool
Trait Implementations§
impl Eq for SslOpts
impl StructuralPartialEq for SslOpts
Auto Trait Implementations§
impl Freeze for SslOpts
impl RefUnwindSafe for SslOpts
impl Send for SslOpts
impl Sync for SslOpts
impl Unpin for SslOpts
impl UnwindSafe for SslOpts
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