[][src]Enum libreauth::oath::ErrorCode

#[repr(C)]
pub enum ErrorCode {
    Success,
    NullPtr,
    NotEnoughSpace,
    InvalidBaseLen,
    InvalidKeyLen,
    CodeTooSmall,
    CodeTooBig,
    InvalidKey,
    InvalidPeriod,
    CodeInvalidUTF8,
}

Error codes used both in the rust and C interfaces.

C interface

The C interface uses an enum of type libreauth_oath_errno and the members has been renamed as follows:

Rust C
Success LIBREAUTH_OATH_SUCCESS
NullPtr LIBREAUTH_OATH_NULL_PTR
NotEnoughSpace LIBREAUTH_OATH_NOT_ENOUGH_SPACE
InvalidBaseLen LIBREAUTH_OATH_INVALID_BASE_LEN
InvalidKeyLen LIBREAUTH_OATH_INVALID_KEY_LEN
CodeTooSmall LIBREAUTH_OATH_CODE_TOO_SMALL
CodeTooBig LIBREAUTH_OATH_CODE_TOO_BIG
InvalidKey LIBREAUTH_OATH_INVALID_KEY
InvalidPeriod LIBREAUTH_OATH_INVALID_PERIOD
CodeInvalidUTF8 LIBREAUTH_OATH_CODE_INVALID_UTF8

Variants

SuccessNullPtrNotEnoughSpaceInvalidBaseLenInvalidKeyLenCodeTooSmallCodeTooBigInvalidKeyInvalidPeriodCodeInvalidUTF8

Trait Implementations

impl Clone for ErrorCode[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for ErrorCode[src]

impl Debug for ErrorCode[src]

Auto Trait Implementations

Blanket Implementations

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> From<T> for T[src]

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self