#[repr(i32)]pub enum OQS_STATUS {
OQS_ERROR = -1,
OQS_SUCCESS = 0,
OQS_EXTERNAL_LIB_ERROR_OPENSSL = 50,
}
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 = -1
Used to indicate that some undefined error occurred.
OQS_SUCCESS = 0
Used to indicate successful return from function.
OQS_EXTERNAL_LIB_ERROR_OPENSSL = 50
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 for OQS_STATUS
impl PartialEq for OQS_STATUS
impl Copy for OQS_STATUS
impl Eq for OQS_STATUS
impl StructuralPartialEq for OQS_STATUS
Auto Trait Implementations§
impl Freeze for OQS_STATUS
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)