[][src]Enum oqs_sys::common::OQS_STATUS

#[repr(i32)]pub enum OQS_STATUS {
    OQS_ERROR,
    OQS_SUCCESS,
    OQS_EXTERNAL_LIB_ERROR_OPENSSL,
}

Represents return values from functions.

Callers should compare with the symbol rather than the individual value. For example,

ret = OQS_KEM_encaps(...);
if (ret == OQS_SUCCESS) { ... }

rather than

if (!OQS_KEM_encaps(...) { ... }

Variants

OQS_ERROR

Used to indicate that some undefined error occurred.

OQS_SUCCESS

Used to indicate successful return from function.

OQS_EXTERNAL_LIB_ERROR_OPENSSL

Used to indicate failures in external libraries (e.g., OpenSSL).

Trait Implementations

impl Clone for OQS_STATUS[src]

impl Copy for OQS_STATUS[src]

impl Debug for OQS_STATUS[src]

impl Eq for OQS_STATUS[src]

impl Hash for OQS_STATUS[src]

impl PartialEq<OQS_STATUS> for OQS_STATUS[src]

impl StructuralEq for OQS_STATUS[src]

impl StructuralPartialEq for OQS_STATUS[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> 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.