Struct mysql_async::SslOpts
[−]
[src]
pub struct SslOpts { /* fields omitted */ }
Ssl Options.
Methods
impl SslOpts
[src]
fn new<T: Into<Cow<'static, Path>>>(pkcs12_path: T) -> SslOpts
[src]
fn set_pkcs12_path<T: Into<Cow<'static, Path>>>(
&mut self,
pkcs12_path: T
) -> &mut Self
[src]
&mut self,
pkcs12_path: T
) -> &mut Self
Sets path to the pkcs12 archive.
fn set_password<T: Into<Cow<'static, str>>>(
&mut self,
password: Option<T>
) -> &mut Self
[src]
&mut self,
password: Option<T>
) -> &mut Self
Sets the password for a pkcs12 archive (defaults to None
).
fn set_root_cert_path<T: Into<Cow<'static, Path>>>(
&mut self,
root_cert_path: Option<T>
) -> &mut Self
[src]
&mut self,
root_cert_path: Option<T>
) -> &mut Self
Sets path to a der certificate of the root that connector will trust.
fn set_danger_skip_domain_validation(&mut self, value: bool) -> &mut Self
[src]
The way to not validate the server's domain
name against its certificate (defaults to false
).
fn pkcs12_path(&self) -> &Path
[src]
fn password(&self) -> Option<&str>
[src]
fn root_cert_path(&self) -> Option<&Path>
[src]
fn skip_domain_validation(&self) -> bool
[src]
Trait Implementations
impl Debug for SslOpts
[src]
impl Clone for SslOpts
[src]
fn clone(&self) -> SslOpts
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for SslOpts
[src]
impl PartialEq for SslOpts
[src]
fn eq(&self, __arg_0: &SslOpts) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SslOpts) -> bool
[src]
This method tests for !=
.