pub enum ApiError {
DaemonAbnormal(DaemonErrorKind),
Events(String),
Metrics(MetricsErrorKind),
MountFilesystem(DaemonErrorKind),
RequestSend(SendError<Option<ApiRequest>>),
ResponsePayloadType,
ResponseRecv(RecvError),
Wakeup(Error),
}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 Freeze for ApiError
impl !RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl !UnwindSafe for ApiError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more