#[repr(u32)]pub enum GuestError {
Show 15 variants
InternalError = 1,
DeviceNotPresent = 2,
BadConfig = 3,
GuestInitializationFailure = 4,
DeviceInitializationFailure = 5,
DeviceStartFailure = 6,
DeviceMemoryOverlap = 7,
FailedServiceConnect = 8,
DuplicatePublicServices = 9,
KernelLoadFailure = 10,
VcpuStartFailure = 11,
VcpuRuntimeFailure = 12,
NotCreated = 13,
AlreadyRunning = 14,
ControllerForcedHalt = 15,
}
Variants§
InternalError = 1
Catch all VMM error.
DeviceNotPresent = 2
A device endpoint was requested via the guest client API, but the device isn’t enabled.
BadConfig = 3
The config failed VMM validation for reasons such as a missing required field.
GuestInitializationFailure = 4
The VMM failed to initialize the guest object, usually due to capability routing issues or memory layout problems.
DeviceInitializationFailure = 5
The VMM failed to initialize a device.
DeviceStartFailure = 6
The VMM failed to start a device, usually because the device component returned a failure.
DeviceMemoryOverlap = 7
Two or more devices have attempted to register overlapping memory ranges.
FailedServiceConnect = 8
Failed to connect to a required service. Check the routing in the manifest.
DuplicatePublicServices = 9
Failed to add a public service.
KernelLoadFailure = 10
General error when loading the guest kernel.
VcpuStartFailure = 11
Error when starting a VCPU.
VcpuRuntimeFailure = 12
A VCPU encountered a fatal error while running.
NotCreated = 13
The VMM was asked to run before it was created.
AlreadyRunning = 14
A VMM is already running. The VMM must be stopped and a new VMM must be created before it can be run again.
ControllerForcedHalt = 15
A running VMM was forced to stop by the VMM controller.
Implementations§
source§impl GuestError
impl GuestError
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
source§impl Clone for GuestError
impl Clone for GuestError
source§fn clone(&self) -> GuestError
fn clone(&self) -> GuestError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GuestError
impl Debug for GuestError
source§impl Decode<GuestError> for GuestError
impl Decode<GuestError> for GuestError
source§impl Encode<GuestError> for GuestError
impl Encode<GuestError> for GuestError
source§impl Hash for GuestError
impl Hash for GuestError
source§impl Ord for GuestError
impl Ord for GuestError
source§fn cmp(&self, other: &GuestError) -> Ordering
fn cmp(&self, other: &GuestError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for GuestError
impl PartialEq for GuestError
source§fn eq(&self, other: &GuestError) -> bool
fn eq(&self, other: &GuestError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GuestError
impl PartialOrd for GuestError
source§fn partial_cmp(&self, other: &GuestError) -> Option<Ordering>
fn partial_cmp(&self, other: &GuestError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for GuestError
impl TypeMarker for GuestError
§type Owned = GuestError
type Owned = GuestError
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moresource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.source§impl ValueTypeMarker for GuestError
impl ValueTypeMarker for GuestError
§type Borrowed<'a> = GuestError
type Borrowed<'a> = GuestError
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more