MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / ApiError

Enum ApiError

vmm/src/api/mod.rs:65–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63/// API errors are sent back from the VMM API server through the ApiResponse.
64#[derive(Error, Debug)]
65pub enum ApiError {
66 /// Cannot write to EventFd.
67 #[error("Cannot write to EventFd")]
68 EventFdWrite(#[source] io::Error),
69
70 /// API request send error
71 #[error("API request send error")]
72 RequestSend(#[source] SendError<ApiRequest>),
73
74 /// Wrong response payload type
75 #[error("Wrong response payload type")]
76 ResponsePayloadType,
77
78 /// API response receive error
79 #[error("API response receive error")]
80 ResponseRecv(#[source] RecvError),
81
82 /// The VM could not boot.
83 #[error("The VM could not boot")]
84 VmBoot(#[source] VmError),
85
86 /// The VM could not be created.
87 #[error("The VM could not be created")]
88 VmCreate(#[source] VmError),
89
90 /// The VM could not be deleted.
91 #[error("The VM could not be deleted")]
92 VmDelete(#[source] VmError),
93
94 /// The VM info is not available.
95 #[error("The VM info is not available")]
96 VmInfo(#[source] VmError),
97
98 /// The VM could not be paused.
99 #[error("The VM could not be paused")]
100 VmPause(#[source] VmError),
101
102 /// The VM could not resume.
103 #[error("The VM could not resume")]
104 VmResume(#[source] VmError),
105
106 /// The VM is not booted.
107 #[error("The VM is not booted")]
108 VmNotBooted,
109
110 /// The VM is not created.
111 #[error("The VM is not created")]
112 VmNotCreated,
113
114 /// The VM could not shutdown.
115 #[error("The VM could not shutdown")]
116 VmShutdown(#[source] VmError),
117
118 /// The VM could not reboot.
119 #[error("The VM could not reboot")]
120 VmReboot(#[source] VmError),
121
122 /// The VM could not be snapshotted.

Callers 1

handle_requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected