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
Auto Trait Implementations
impl !RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl !UnwindSafe for ApiError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more