#[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<D: ResourceDialect> Decode<GuestError, D> for GuestError
impl<D: ResourceDialect> Decode<GuestError, D> for GuestError
Source§impl<D: ResourceDialect> Encode<GuestError, D> for GuestError
impl<D: ResourceDialect> Encode<GuestError, D> 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§impl PartialOrd for GuestError
impl PartialOrd for GuestError
Source§impl TypeMarker for GuestError
impl TypeMarker for GuestError
Source§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
Source§type Borrowed<'a> = GuestError
type Borrowed<'a> = GuestError
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more