Struct cassandra_cpp::Ssl

source ·
pub struct Ssl(_);
Expand description

Describes the SSL configuration of a cluster.

Implementations§

Adds a trusted certificate. This is used to verify the peer’s certificate.

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

Set client-side certificate chain. This is used to authenticate the client on the server-side. This should contain the entire Certificate chain starting with the certificate itself.

Set client-side private key. This is used to authenticate the client on the server-side.

Trait Implementations§

Formats the value using the given formatter. Read more

Creates a new SSL context.

Frees a SSL context instance.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.