Enum ic_agent::agent::AgentError[][src]

pub enum AgentError {
    InvalidReplicaUrl(String),
    TimeoutWaitingForResponse(),
    WaiterRestartError(),
    SigningError(String),
    InvalidCborData(Error),
    CannotCalculateRequestId(RequestIdError),
    ReqwestError(Error),
    CandidError(Box<dyn Send + Sync + Error>),
    UrlParseError(ParseError),
    PrincipalError(PrincipalError),
    ReplicaError {
        reject_code: u64,
        reject_message: String,
    },
    HttpError(HttpErrorPayload),
    CannotUseAuthenticationOnNonSecureUrl(),
    AuthenticationError(String),
    InvalidReplicaStatus,
    RequestStatusDoneNoReply(String),
    MessageError(String),
    CustomError(Box<dyn Send + Sync + Error>),
    Leb128ReadError(Error),
    Utf8ReadError(Utf8Error),
    LookupPathAbsent(Vec<Label>),
    LookupPathUnknown(Vec<Label>),
    LookupPathError(Vec<Label>),
    InvalidRequestStatus(Vec<Label>, String),
    CertificateVerificationFailed(),
    DerKeyLengthMismatch {
        expected: usize,
        actual: usize,
    },
    DerPrefixMismatch {
        expected: Vec<u8>,
        actual: Vec<u8>,
    },
    NoRootKeyInStatus(Status),
    CouldNotReadRootKey(),
    BlsInitializationFailure(),
}

Variants

InvalidReplicaUrl(String)
TimeoutWaitingForResponse()
WaiterRestartError()
SigningError(String)
InvalidCborData(Error)
CannotCalculateRequestId(RequestIdError)
ReqwestError(Error)
CandidError(Box<dyn Send + Sync + Error>)
UrlParseError(ParseError)
PrincipalError(PrincipalError)
ReplicaError

Fields of ReplicaError

reject_code: u64reject_message: String
HttpError(HttpErrorPayload)
CannotUseAuthenticationOnNonSecureUrl()
AuthenticationError(String)
InvalidReplicaStatus
RequestStatusDoneNoReply(String)
MessageError(String)
CustomError(Box<dyn Send + Sync + Error>)
Leb128ReadError(Error)
Utf8ReadError(Utf8Error)
LookupPathAbsent(Vec<Label>)
LookupPathUnknown(Vec<Label>)
LookupPathError(Vec<Label>)
InvalidRequestStatus(Vec<Label>, String)
CertificateVerificationFailed()
DerKeyLengthMismatch

Fields of DerKeyLengthMismatch

expected: usizeactual: usize
DerPrefixMismatch

Fields of DerPrefixMismatch

expected: Vec<u8>actual: Vec<u8>
NoRootKeyInStatus(Status)
CouldNotReadRootKey()
BlsInitializationFailure()

Trait Implementations

impl Debug for AgentError[src]

impl Display for AgentError[src]

impl Error for AgentError[src]

impl From<Box<dyn Error + 'static + Sync + Send, Global>> for AgentError[src]

impl From<Error> for AgentError[src]

impl From<Error> for AgentError[src]

impl From<Error> for AgentError[src]

impl From<ParseError> for AgentError[src]

impl From<PrincipalError> for AgentError[src]

impl From<RequestIdError> for AgentError[src]

impl From<Utf8Error> for AgentError[src]

impl PartialEq<AgentError> for AgentError[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,