pub struct ActivityGovernorAcquireWakeLease2Request {
pub name: Option<String>,
pub server_token: Option<EventPair>,
pub previous_client_token: Option<EventPair>,
pub unmonitored: Option<bool>,
/* private fields */
}Fields§
§name: Option<String>The name of the lease.
Required. The name cannot be empty but is not required to be globally unique.
server_token: Option<EventPair>The server side of the token that blocks hardware platform suspension.
Required. The caller should give out handles to the client side
of the LeaseToken which is peered to this server_token.
previous_client_token: Option<EventPair>Optional predecessor client token for the lease being exchanged.
If present, SAG holds this handle until the new wake lease is
registered in SAG’s internal tracking structures, and records in
Inspect that the new wake lease is associated with the predecessor
lease (replaces_lease_id). Providing previous_client_token does
not destroy the previous lease if other handles to its client token
remain open.
unmonitored: Option<bool>Optional flag indicating whether the wake lease is unmonitored.
If present and true, behaves like AcquireUnmonitoredWakeLease:
SAG does not monitor the duration of this lease and will not file a
crash report if it exceeds preconfigured alert thresholds.
Defaults to false if absent.
Trait Implementations§
Source§impl Decode<ActivityGovernorAcquireWakeLease2Request, DefaultFuchsiaResourceDialect> for ActivityGovernorAcquireWakeLease2Request
impl Decode<ActivityGovernorAcquireWakeLease2Request, DefaultFuchsiaResourceDialect> for ActivityGovernorAcquireWakeLease2Request
Source§impl Encode<ActivityGovernorAcquireWakeLease2Request, DefaultFuchsiaResourceDialect> for &mut ActivityGovernorAcquireWakeLease2Request
impl Encode<ActivityGovernorAcquireWakeLease2Request, DefaultFuchsiaResourceDialect> for &mut ActivityGovernorAcquireWakeLease2Request
Source§impl ResourceTypeMarker for ActivityGovernorAcquireWakeLease2Request
impl ResourceTypeMarker for ActivityGovernorAcquireWakeLease2Request
Source§type Borrowed<'a> = &'a mut ActivityGovernorAcquireWakeLease2Request
type Borrowed<'a> = &'a mut ActivityGovernorAcquireWakeLease2Request
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).impl Standalone<DefaultFuchsiaResourceDialect> for ActivityGovernorAcquireWakeLease2Request
impl StructuralPartialEq for ActivityGovernorAcquireWakeLease2Request
Source§impl TypeMarker for ActivityGovernorAcquireWakeLease2Request
impl TypeMarker for ActivityGovernorAcquireWakeLease2Request
Source§type Owned = ActivityGovernorAcquireWakeLease2Request
type Owned = ActivityGovernorAcquireWakeLease2Request
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.