Enum onc_rpc::AuthError[][src]

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

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

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

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

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.