pub struct ExecutionResumeLatency {
pub passive_dependency_token: Option<Event>,
pub active_dependency_token: Option<Event>,
pub resume_latencies: Option<Vec<i64>>,
/* private fields */
}
Expand description
Holds tokens to the execution resume latency power element and its supported resume latencies.
The execution resume latency power element represents the suspension-to-resume delay that must be met by the hardware platform.
The execution resume latency power element’s power levels are platform and
hardware dependent. The power levels supported by the power element match
the index of the resume latency in the table, i.e. The item at index 0 in
resume_latencies
is represented by power level 0, the item at index 1 is
represented by power level 1, and so on.
Fields§
§passive_dependency_token: Option<Event>
§active_dependency_token: Option<Event>
§resume_latencies: Option<Vec<i64>>
Trait Implementations§
source§impl Debug for ExecutionResumeLatency
impl Debug for ExecutionResumeLatency
source§impl Decode<ExecutionResumeLatency> for ExecutionResumeLatency
impl Decode<ExecutionResumeLatency> for ExecutionResumeLatency
source§impl Default for ExecutionResumeLatency
impl Default for ExecutionResumeLatency
source§fn default() -> ExecutionResumeLatency
fn default() -> ExecutionResumeLatency
Returns the “default value” for a type. Read more
source§impl Encode<ExecutionResumeLatency> for &mut ExecutionResumeLatency
impl Encode<ExecutionResumeLatency> for &mut ExecutionResumeLatency
source§impl PartialEq for ExecutionResumeLatency
impl PartialEq for ExecutionResumeLatency
source§fn eq(&self, other: &ExecutionResumeLatency) -> bool
fn eq(&self, other: &ExecutionResumeLatency) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ResourceTypeMarker for ExecutionResumeLatency
impl ResourceTypeMarker for ExecutionResumeLatency
§type Borrowed<'a> = &'a mut ExecutionResumeLatency
type Borrowed<'a> = &'a mut ExecutionResumeLatency
The Rust type to use for encoding. This is a particular
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>
Cheaply converts from
&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 ExecutionResumeLatency
impl TypeMarker for ExecutionResumeLatency
§type Owned = ExecutionResumeLatency
type Owned = ExecutionResumeLatency
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.impl Standalone for ExecutionResumeLatency
impl StructuralPartialEq for ExecutionResumeLatency
Auto Trait Implementations§
impl Freeze for ExecutionResumeLatency
impl RefUnwindSafe for ExecutionResumeLatency
impl Send for ExecutionResumeLatency
impl Sync for ExecutionResumeLatency
impl Unpin for ExecutionResumeLatency
impl UnwindSafe for ExecutionResumeLatency
Blanket Implementations§
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