[−][src]Struct mysql_async::SslOpts
Ssl Options.
let ssl_opts = SslOpts::default() .with_pkcs12_path(Some(Path::new("/path"))) .with_password(Some("******"));
Implementations
impl SslOpts
[src]
pub fn with_pkcs12_path<T: Into<Cow<'static, Path>>>(
mut self: Self,
pkcs12_path: Option<T>
) -> Self
[src]
mut self: Self,
pkcs12_path: Option<T>
) -> Self
Sets path to the pkcs12 archive (in der
format).
pub fn with_password<T: Into<Cow<'static, str>>>(
mut self: Self,
password: Option<T>
) -> Self
[src]
mut self: Self,
password: Option<T>
) -> Self
Sets the password for a pkcs12 archive (defaults to None
).
pub fn with_root_cert_path<T: Into<Cow<'static, Path>>>(
mut self: Self,
root_cert_path: Option<T>
) -> Self
[src]
mut self: Self,
root_cert_path: Option<T>
) -> Self
Sets path to a pem
or der
certificate of the root that connector will trust.
Multiple certs are allowed in .pem files.
pub fn with_danger_skip_domain_validation(mut self: 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(mut self: 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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SslOpts> for SslOpts
[src]
impl StructuralEq for SslOpts
[src]
impl StructuralPartialEq for SslOpts
[src]
Auto Trait Implementations
impl RefUnwindSafe for SslOpts
[src]
impl Send for SslOpts
[src]
impl Sync for SslOpts
[src]
impl Unpin for SslOpts
[src]
impl UnwindSafe for SslOpts
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
T: Hash,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,