#[repr(C, packed(1))]pub struct PlatformStatus {
pub version: Version,
pub state: u8,
pub flags: PlatformStatusFlags,
pub build: u8,
pub guest_count: u32,
}Expand description
Query CSV platform status.
Fields§
§version: VersionThe firmware version (major.minor)
state: u8The Platform State.
flags: PlatformStatusFlagsRight now the only flag that is communicated in this single byte is whether the platform is self- owned or not. If the first bit is set then the platform is externally owned. If it is cleared, then the platform is self-owned. Self-owned is the default state.
build: u8The firmware build ID for this API version.
guest_count: u32The number of valid guests maintained by the CSV firmware.
Trait Implementations§
Source§impl Default for PlatformStatus
impl Default for PlatformStatus
Source§fn default() -> PlatformStatus
fn default() -> PlatformStatus
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlatformStatus
impl RefUnwindSafe for PlatformStatus
impl Send for PlatformStatus
impl Sync for PlatformStatus
impl Unpin for PlatformStatus
impl UnsafeUnpin for PlatformStatus
impl UnwindSafe for PlatformStatus
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