#[repr(u32)]pub enum GuestType {
Zircon = 0,
Debian = 1,
Termina = 2,
}Expand description
The available guest types.
Variants§
Zircon = 0
A minimal Fuchsia system that boots to a Zircon virtcon.
Debian = 1
A Debian guest, exact version dependent on prebuilts.
Termina = 2
A Linux guest that contains additional features for Vulkan and window manager integration, based on the Termina VM from ChromeOS.
Implementations§
Source§impl GuestType
impl GuestType
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<GuestType, D> for GuestType
impl<D: ResourceDialect> Decode<GuestType, D> for GuestType
Source§impl Ord for GuestType
impl Ord for GuestType
Source§impl PartialOrd for GuestType
impl PartialOrd for GuestType
Source§impl TypeMarker for GuestType
impl TypeMarker for GuestType
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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
Returns true if the memory layout of
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 GuestType
impl ValueTypeMarker for GuestType
impl Copy for GuestType
impl Eq for GuestType
impl StructuralPartialEq for GuestType
Auto Trait Implementations§
impl Freeze for GuestType
impl RefUnwindSafe for GuestType
impl Send for GuestType
impl Sync for GuestType
impl Unpin for GuestType
impl UnsafeUnpin for GuestType
impl UnwindSafe for GuestType
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