Enum oqs_sys::common::OQS_STATUS
source · #[repr(i32)]pub enum OQS_STATUS {
OQS_ERROR,
OQS_SUCCESS,
OQS_EXTERNAL_LIB_ERROR_OPENSSL,
}
Expand description
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§
source§impl Clone for OQS_STATUS
impl Clone for OQS_STATUS
source§fn clone(&self) -> OQS_STATUS
fn clone(&self) -> OQS_STATUS
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OQS_STATUS
impl Debug for OQS_STATUS
source§impl Hash for OQS_STATUS
impl Hash for OQS_STATUS
source§impl PartialEq<OQS_STATUS> for OQS_STATUS
impl PartialEq<OQS_STATUS> for OQS_STATUS
source§fn eq(&self, other: &OQS_STATUS) -> bool
fn eq(&self, other: &OQS_STATUS) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OQS_STATUS
impl Eq for OQS_STATUS
impl StructuralEq for OQS_STATUS
impl StructuralPartialEq for OQS_STATUS
Auto Trait Implementations§
impl RefUnwindSafe for OQS_STATUS
impl Send for OQS_STATUS
impl Sync for OQS_STATUS
impl Unpin for OQS_STATUS
impl UnwindSafe for OQS_STATUS
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more