[][src]Struct libzmq::auth::CurveCert

pub struct CurveCert { /* fields omitted */ }

A CURVE certificate containing a public and secret CurveKey.

Example

use libzmq::auth::CurveCert;

// Generate a new unique curve certificate.
let cert = CurveCert::new_unique();

Implementations

impl CurveCert[src]

pub fn new_unique() -> Self[src]

Generate a new unique certificate.

pub fn public(&self) -> &CurvePublicKey[src]

Returns a reference to the certificate's public key.

pub fn secret(&self) -> &CurveSecretKey[src]

Returns a reference to the certificate's secret key.

Trait Implementations

impl Clone for CurveCert[src]

impl Debug for CurveCert[src]

impl<'de> Deserialize<'de> for CurveCert[src]

impl Eq for CurveCert[src]

impl Hash for CurveCert[src]

impl PartialEq<CurveCert> for CurveCert[src]

impl Serialize for CurveCert[src]

impl StructuralEq for CurveCert[src]

impl StructuralPartialEq for CurveCert[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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>,