[][src]Struct mysql::SslOpts

pub struct SslOpts { /* fields omitted */ }

Ssl Options.

Methods

impl SslOpts[src]

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

Sets path to the pkcs12 archive.

If you have the client's private key and certificate in PEM format, you can translate them to pkcs12 using openssl:

openssl pkcs12 -password pass: -export -out path.p12 -inkey privatekey.pem -in cert.pem -no-CAfile

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

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

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

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

If you have a certificate in PEM format, you can translate it to der using openssl:

openssl x509 -outform der -in rootca.pem -out rootca.der

pub fn with_danger_skip_domain_validation(self, value: bool) -> Self[src]

The way to not validate the server's domain name against its certificate (defaults to false).

pub fn with_danger_accept_invalid_certs(self, value: bool) -> 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 Clone for SslOpts[src]

impl Debug for SslOpts[src]

impl Default for SslOpts[src]

impl Eq for SslOpts[src]

impl Hash for SslOpts[src]

impl PartialEq<SslOpts> for SslOpts[src]

impl StructuralEq for SslOpts[src]

impl StructuralPartialEq for SslOpts[src]

Auto Trait Implementations

impl RefUnwindSafe for SslOpts

impl Send for SslOpts

impl Sync for SslOpts

impl Unpin for SslOpts

impl UnwindSafe for SslOpts

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,