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§
Source§impl Clone for GuestDescriptor
impl Clone for GuestDescriptor
Source§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 moreSource§impl Debug for GuestDescriptor
impl Debug for GuestDescriptor
Source§impl<D: ResourceDialect> Decode<GuestDescriptor, D> for GuestDescriptor
impl<D: ResourceDialect> Decode<GuestDescriptor, D> for GuestDescriptor
Source§impl Default for GuestDescriptor
impl Default for GuestDescriptor
Source§fn default() -> GuestDescriptor
fn default() -> GuestDescriptor
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<GuestDescriptor, D> for &GuestDescriptor
impl<D: ResourceDialect> Encode<GuestDescriptor, D> for &GuestDescriptor
Source§impl PartialEq for GuestDescriptor
impl PartialEq for GuestDescriptor
Source§impl TypeMarker for GuestDescriptor
impl TypeMarker for GuestDescriptor
Source§type Owned = GuestDescriptor
type Owned = GuestDescriptor
The owned Rust type which this FIDL type decodes into.
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
.§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.Source§impl ValueTypeMarker for GuestDescriptor
impl ValueTypeMarker for GuestDescriptor
Source§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 moreimpl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)