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§
source§impl AuthError
impl AuthError
sourcepub fn serialise_into<W: Write>(&self, buf: W) -> Result<(), Error>
pub fn serialise_into<W: Write>(&self, buf: W) -> Result<(), Error>
Serialises this AuthError
into buf
, advancing the cursor position by
AuthError::serialised_len()
bytes.
sourcepub fn serialised_len(&self) -> u32
pub fn serialised_len(&self) -> u32
Returns the on-wire length of this reply body once serialised.