Struct cassandra_cpp::Ssl[][src]

pub struct Ssl(_);
Expand description

Describes the SSL configuration of a cluster.

Implementations

impl Ssl[src]

pub fn add_trusted_cert(&mut self, cert: &str) -> Result<&mut Self>[src]

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

pub fn set_verify_flags(&mut self, flags: &[SslVerifyFlag])[src]

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

pub fn set_cert(&mut self, cert: &str) -> Result<&mut Self>[src]

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.

pub fn set_private_key(
    &mut self,
    key: &str,
    password: &str
) -> Result<&mut Self>
[src]

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

Trait Implementations

impl Debug for Ssl[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for Ssl[src]

fn default() -> Ssl[src]

Creates a new SSL context.

impl Drop for Ssl[src]

fn drop(&mut self)[src]

Frees a SSL context instance.

impl Send for Ssl[src]

Auto Trait Implementations

impl RefUnwindSafe for Ssl

impl !Sync for Ssl

impl Unpin for Ssl

impl UnwindSafe for Ssl

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]