pub enum ApiError {
    DaemonAbnormal(DaemonErrorKind),
    Events(String),
    Metrics(MetricsErrorKind),
    MountFilesystem(DaemonErrorKind),
    RequestSend(SendError<Option<ApiRequest>>),
    ResponsePayloadType,
    ResponseRecv(RecvError),
    Wakeup(Error),
}
Expand description

Errors generated by/related to the API service, sent back through ApiResponse.

Variants

DaemonAbnormal(DaemonErrorKind)

Daemon internal error

Events(String)

Failed to get events information

Metrics(MetricsErrorKind)

Failed to get metrics information

MountFilesystem(DaemonErrorKind)

Failed to mount filesystem

RequestSend(SendError<Option<ApiRequest>>)

Failed to send request to the API service

ResponsePayloadType

Unrecognized payload content

ResponseRecv(RecvError)

Failed to receive response from the API service

Wakeup(Error)

Failed to send wakeup notification

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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.