[][src]Struct mysql_async::SslOpts

pub struct SslOpts { /* fields omitted */ }

Ssl Options.

Methods

impl SslOpts[src]

pub fn new() -> SslOpts[src]

pub fn set_pkcs12_path<T: Into<Cow<'static, Path>>>(
    &mut self,
    pkcs12_path: Option<T>
) -> &mut Self
[src]

Sets path to the pkcs12 archive.

pub fn set_password<T: Into<Cow<'static, str>>>(
    &mut self,
    password: Option<T>
) -> &mut Self
[src]

Sets the password for a pkcs12 archive (defaults to None).

pub fn set_root_cert_path<T: Into<Cow<'static, Path>>>(
    &mut self,
    root_cert_path: Option<T>
) -> &mut Self
[src]

Sets path to a der certificate of the root that connector will trust.

pub 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).

pub fn set_danger_accept_invalid_certs(&mut self, value: bool) -> &mut Self[src]

If true then client will accept invalid certificate (expired, not trusted, ..) (defaults to false).

pub fn pkcs12_path(&self) -> Option<&Path>[src]

pub fn password(&self) -> Option<&str>[src]

pub fn root_cert_path(&self) -> Option<&Path>[src]

pub fn skip_domain_validation(&self) -> bool[src]

pub fn accept_invalid_certs(&self) -> bool[src]

Trait Implementations

impl PartialEq<SslOpts> for SslOpts[src]

impl Clone for SslOpts[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for SslOpts[src]

impl Debug for SslOpts[src]

impl Hash for SslOpts[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for SslOpts

impl Sync for SslOpts

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<T> Erased for T