[][src]Enum onc_rpc::AuthError

pub enum AuthError {
    Success,
    BadCredentials,
    RejectedCredentials,
    BadVerifier,
    RejectedVerifier,
    TooWeak,
    InvalidResponseVerifier,
    Failed,
}

AuthError describes the reason the request authentication credentials were rejected.

Variants

Success

This is AUTH_OK in the spec.

BadCredentials

The credentials were rejected.

This is AUTH_BADCRED in the spec.

RejectedCredentials

The session has been invalidated.

This typically occurs if using AUTH_SHORT and the opaque identifier has been revoked on the server side.

This is AUTH_REJECTEDCRED in the spec.

BadVerifier

The verifier was not acceptable.

This is AUTH_BADVERF in the spec.

RejectedVerifier

The verifier was rejected/expired.

This is AUTH_REJECTEDVERF in the spec.

TooWeak

The authentication scheme was rejected for security reasons.

This is AUTH_TOOWEAK in the spec.

InvalidResponseVerifier

The response verifier is invalid.

This is AUTH_INVALIDRESP in the spec.

Failed

An unknown failure occured.

This is AUTH_FAILED in the spec.

Implementations

impl AuthError[src]

pub fn serialise_into(&self, buf: &mut Cursor<Vec<u8>>) -> Result<(), Error>[src]

Serialises this AuthError into buf, advancing the cursor position by serialised_len bytes.

pub fn serialised_len(&self) -> u32[src]

Returns the on-wire length of this reply body once serialised.

Trait Implementations

impl Debug for AuthError[src]

impl PartialEq<AuthError> for AuthError[src]

impl StructuralPartialEq for AuthError[src]

impl TryFrom<Bytes> for AuthError[src]

type Error = Error

The type returned in the event of a conversion error.

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