Struct discord_cassandra_cpp::Ssl
source · [−]pub struct Ssl(_);
Expand description
Describes the SSL configuration of a cluster.
Implementations
sourceimpl Ssl
impl Ssl
sourcepub fn add_trusted_cert(&mut self, cert: impl AsRef<str>) -> Result<&mut Self>
pub fn add_trusted_cert(&mut self, cert: impl AsRef<str>) -> Result<&mut Self>
Adds a trusted certificate. This is used to verify the peer’s certificate.
sourcepub fn set_verify_flags(&mut self, flags: &[SslVerifyFlag])
pub fn set_verify_flags(&mut self, flags: &[SslVerifyFlag])
Sets verification performed on the peer’s certificate.
CASS_SSL_VERIFY_NONE - No verification is performed
CASS_SSL_VERIFY_PEER_CERT - Certificate is present and valid
CASS_SSL_VERIFY_PEER_IDENTITY - IP address matches the certificate’s common name or one of its subject alternative names. This implies the certificate is also present.
Default: CASS_SSL_VERIFY_PEER_CERT
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more