pub struct RealmOptions {
pub use_fake_sag: Option<bool>,
pub wait_for_suspending_token: Option<bool>,
pub use_suspender: Option<bool>,
pub stuck_warning_timeout_seconds: Option<u32>,
pub reboot_on_stalled_suspend_blocker: Option<bool>,
pub long_wake_lease_timeout_seconds: Option<u32>,
/* private fields */
}Expand description
RealmOptions tells the RealmFactory protocol how to create the test realm.
Fields§
§use_fake_sag: Option<bool>Specifies whether to use a fake SAG that exposes additional protocols to set/watch real SAG power element power levels. Defaults to false.
wait_for_suspending_token: Option<bool>Specifies whether to set the fuchsia.power.WaitForSuspendingToken config
capability to true. If true, SAG will wait to receive a token through
[fuchsia.power.system/CpuElementManager.AddExectuionStateDependency].
If false, SAG will skip adding external Execution State dependencies.
Defaults to false.
use_suspender: Option<bool>Specifies whether SAG will use a suspender or not. Defaults to true.
stuck_warning_timeout_seconds: Option<u32>Specifies the timeout in seconds for the suspend/resume watchdog. Defaults to 60 seconds if not specified.
reboot_on_stalled_suspend_blocker: Option<bool>Specifies whether SAG will trigger a reboot when a suspend/resume hang is detected. Defaults to false.
long_wake_lease_timeout_seconds: Option<u32>Specifies the timeout in seconds for the long wake lease watchdog. Recommended to use default of 60 seconds in test.
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§fn eq(&self, other: &RealmOptions) -> bool
fn eq(&self, other: &RealmOptions) -> bool
self and other values to be equal, and is used by ==.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.Source§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 moreSource§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.