pub enum LaunchError {
Show 13 variants
QemuNotFound {
searched: Vec<String>,
},
KvmRequired,
NoKernelSegment {
path: PathBuf,
},
KernelExtraction(String),
TempFile(Error),
QemuSpawn(Error),
QemuExited {
code: Option<i32>,
stderr: String,
},
Timeout {
seconds: u64,
},
Qmp(String),
QmpIo(Error),
PortInUse {
port: u16,
},
VmNotRunning,
Io(Error),
}Expand description
All errors that the launcher can produce.
Variants§
QemuNotFound
QEMU binary not found on the system.
KvmRequired
KVM is required but not available.
NoKernelSegment
The RVF file does not contain a KERNEL_SEG.
KernelExtraction(String)
Failed to extract kernel from the RVF file.
TempFile(Error)
Failed to create a temporary file for the extracted kernel.
QemuSpawn(Error)
QEMU process failed to start.
QemuExited
QEMU process exited with a non-zero code.
Timeout
Timeout waiting for the VM to become ready.
Qmp(String)
QMP protocol error.
QmpIo(Error)
I/O error communicating with QMP socket.
PortInUse
Port is already in use.
VmNotRunning
The VM process has already exited.
Io(Error)
Generic I/O error.
Trait Implementations§
Source§impl Debug for LaunchError
impl Debug for LaunchError
Source§impl Display for LaunchError
impl Display for LaunchError
Source§impl Error for LaunchError
impl Error for LaunchError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for LaunchError
impl !RefUnwindSafe for LaunchError
impl Send for LaunchError
impl Sync for LaunchError
impl Unpin for LaunchError
impl !UnwindSafe for LaunchError
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