Enum GuestError
#[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§
§impl GuestError
impl GuestError
pub fn from_primitive(prim: u32) -> Option<GuestError>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
§impl Clone for GuestError
impl Clone for GuestError
§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 more§impl Debug for GuestError
impl Debug for GuestError
§impl<D> Decode<GuestError, D> for GuestErrorwhere
D: ResourceDialect,
impl<D> Decode<GuestError, D> for GuestErrorwhere
D: ResourceDialect,
§fn new_empty() -> GuestError
fn new_empty() -> GuestError
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<GuestError, D> for GuestErrorwhere
D: ResourceDialect,
impl<D> Encode<GuestError, D> for GuestErrorwhere
D: ResourceDialect,
§impl Hash for GuestError
impl Hash for GuestError
§impl Ord for GuestError
impl Ord for GuestError
§impl PartialEq for GuestError
impl PartialEq for GuestError
§impl PartialOrd for GuestError
impl PartialOrd for GuestError
§impl TypeMarker for GuestError
impl TypeMarker for GuestError
§type Owned = GuestError
type Owned = GuestError
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§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 more§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.§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§fn borrow(
value: &<GuestError as TypeMarker>::Owned,
) -> <GuestError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<GuestError as TypeMarker>::Owned, ) -> <GuestError as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.