pub struct RealmOptions {
pub program_config: Option<Vmo>,
pub triage_configs: Option<Vec<Vmo>>,
pub inspect_data: Option<Vec<Vmo>>,
/* private fields */
}
Expand description
RealmOptions tells the RealmFactory protocol how to create the test realm.
Note that there is a limit of 64 handles in a single channel write. Keep in mind that when initializing these RealmOptions, 64 is the combined limit for all handles in the message.
Fields§
§program_config: Option<Vmo>
The JSON configuration for the triage-detect component.
Values in this config may override enable_crash_reporting
.
This is exposed to allow the tests to see how the compnent behaves if e.g.
the config file is corrupted.
triage_configs: Option<Vec<Vmo>>
Triage config contents.
Triage configs are JSON objects that tell the component which diagnostic data to fetch and what to do in response to that data. The schema of this JSON can be found at //src/diagnostics/lib/triage/src/config.rs.
inspect_data: Option<Vec<Vmo>>
A list of a canned JSON responses to send when triage-detect fetches inspect data.
The data are sent in the order they appear in this vector.
Trait Implementations§
Source§impl Debug for RealmOptions
impl Debug for RealmOptions
Source§impl Decode<RealmOptions, DefaultFuchsiaResourceDialect> for RealmOptions
impl Decode<RealmOptions, DefaultFuchsiaResourceDialect> for RealmOptions
Source§impl Default for RealmOptions
impl Default for RealmOptions
Source§fn default() -> RealmOptions
fn default() -> RealmOptions
Source§impl Encode<RealmOptions, DefaultFuchsiaResourceDialect> for &mut RealmOptions
impl Encode<RealmOptions, DefaultFuchsiaResourceDialect> for &mut RealmOptions
Source§impl PartialEq for RealmOptions
impl PartialEq for RealmOptions
Source§impl ResourceTypeMarker for RealmOptions
impl ResourceTypeMarker for RealmOptions
Source§type Borrowed<'a> = &'a mut RealmOptions
type Borrowed<'a> = &'a mut RealmOptions
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for RealmOptions
impl TypeMarker for RealmOptions
Source§type Owned = RealmOptions
type Owned = RealmOptions
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
.§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 more§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.