pub struct RealmOptions {
pub driver_test_realm_start_args: Option<RealmArgs>,
pub driver_test_realm_url: Option<String>,
pub dev_topological: Option<ServerEnd<DirectoryMarker>>,
pub dev_class: Option<ServerEnd<DirectoryMarker>>,
pub offers_client: Option<ClientEnd<DirectoryMarker>>,
/* private fields */
}
Expand description
RealmOptions tells the RealmFactory protocol how to create the test realm.
Fields§
§driver_test_realm_start_args: Option<RealmArgs>
The RealmArgs for the driver test realm. This is required.
driver_test_realm_url: Option<String>
This is an override for the url to use for the driver test realm. By default, the url used is “#meta/driver_test_realm.cm”, and it should not be overriden unless the intent is to replace the driver test realm that is provided by the driver framework team. This is optional.
dev_topological: Option<ServerEnd<DirectoryMarker>>
DEPRECATED: In API level 20 and up, the |dictionary| can provide access to the devfs. The server end that the topological devfs gets served on. This is optional.
dev_class: Option<ServerEnd<DirectoryMarker>>
DEPRECATED: In API level 20 and up, the |dictionary| can provide access to the devfs. The server end that the class based devfs gets served on. This is optional.
offers_client: Option<ClientEnd<DirectoryMarker>>
This is the client end to a directory that provides all of the |dtr_offers|, or the deprecated |offers|, specified in the |driver_test_realm_start_args| to drivers under test. This is required if and only if |dtr_offers| or |offers| is provided in |driver_test_realm_start_args|.
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.