Enum kanidm_client::ClientError[][src]

pub enum ClientError {
    Unauthorized,
    Http(StatusCodeOption<OperationError>, String),
    Transport(Error),
    AuthenticationFailed,
    EmptyResponse,
    TotpVerifyFailed(UuidTotpSecret),
    TotpInvalidSha1(Uuid),
    JsonDecode(ErrorString),
    JsonEncode(SerdeJsonError),
    SystemError,
}

Variants

Unauthorized
Http(StatusCodeOption<OperationError>, String)

Tuple Fields of Http

0: StatusCode1: Option<OperationError>2: String
Transport(Error)

Tuple Fields of Transport

0: Error
AuthenticationFailed
EmptyResponse
TotpVerifyFailed(UuidTotpSecret)

Tuple Fields of TotpVerifyFailed

0: Uuid1: TotpSecret
TotpInvalidSha1(Uuid)

Tuple Fields of TotpInvalidSha1

0: Uuid
JsonDecode(ErrorString)

Tuple Fields of JsonDecode

0: Error1: String
JsonEncode(SerdeJsonError)

Tuple Fields of JsonEncode

0: SerdeJsonError
SystemError

Trait Implementations

Formats the value using the given formatter. Read more

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more