Struct GuestDescriptor
pub struct GuestDescriptor {
pub num_cpus: Option<u8>,
pub guest_memory: Option<u64>,
pub wayland: Option<bool>,
pub magma: Option<bool>,
pub balloon: Option<bool>,
pub console: Option<bool>,
pub gpu: Option<bool>,
pub rng: Option<bool>,
pub vsock: Option<bool>,
pub sound: Option<bool>,
pub networks: Option<Vec<NetSpec>>,
pub mem: Option<bool>,
/* private fields */
}
Expand description
An informational only subset of the GuestConfig. If adding new non-handle entries to the GuestConfig, consider also adding them here.
Fields§
§num_cpus: Option<u8>
Number of guest VCPUs.
guest_memory: Option<u64>
Guest memory in bytes.
wayland: Option<bool>
Whether the guest was started with the given virtual device.
magma: Option<bool>
§balloon: Option<bool>
§console: Option<bool>
§gpu: Option<bool>
§rng: Option<bool>
§vsock: Option<bool>
§sound: Option<bool>
§networks: Option<Vec<NetSpec>>
The configs for each net device the guest was started with. If empty, there is no virtual net device (and the guest will have no networking).
mem: Option<bool>
Trait Implementations§
§impl Clone for GuestDescriptor
impl Clone for GuestDescriptor
§fn clone(&self) -> GuestDescriptor
fn clone(&self) -> GuestDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for GuestDescriptor
impl Debug for GuestDescriptor
§impl<D> Decode<GuestDescriptor, D> for GuestDescriptorwhere
D: ResourceDialect,
impl<D> Decode<GuestDescriptor, D> for GuestDescriptorwhere
D: ResourceDialect,
§fn new_empty() -> GuestDescriptor
fn new_empty() -> GuestDescriptor
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for GuestDescriptor
impl Default for GuestDescriptor
§fn default() -> GuestDescriptor
fn default() -> GuestDescriptor
Returns the “default value” for a type. Read more
§impl<D> Encode<GuestDescriptor, D> for &GuestDescriptorwhere
D: ResourceDialect,
impl<D> Encode<GuestDescriptor, D> for &GuestDescriptorwhere
D: ResourceDialect,
§impl PartialEq for GuestDescriptor
impl PartialEq for GuestDescriptor
§impl TypeMarker for GuestDescriptor
impl TypeMarker for GuestDescriptor
§type Owned = GuestDescriptor
type Owned = GuestDescriptor
The owned Rust type which this FIDL type decodes into.
§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.
§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
.§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 more§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.§impl ValueTypeMarker for GuestDescriptor
impl ValueTypeMarker for GuestDescriptor
§type Borrowed<'a> = &'a GuestDescriptor
type Borrowed<'a> = &'a GuestDescriptor
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<GuestDescriptor as TypeMarker>::Owned,
) -> <GuestDescriptor as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<GuestDescriptor as TypeMarker>::Owned, ) -> <GuestDescriptor as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Persistable for GuestDescriptor
impl StructuralPartialEq for GuestDescriptor
Auto Trait Implementations§
impl Freeze for GuestDescriptor
impl RefUnwindSafe for GuestDescriptor
impl Send for GuestDescriptor
impl Sync for GuestDescriptor
impl Unpin for GuestDescriptor
impl UnwindSafe for GuestDescriptor
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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