pub struct CoordinatorSetDisplayPowerModeRequest {
pub display_id: DisplayId,
pub power_mode: PowerMode,
}
Fields§
§display_id: DisplayId
§power_mode: PowerMode
The target power mode of the display hardware.
Once power_mode
is set to OFF
, the hardware will not generate
new VSync events. However, the client should be prepared to handle
VSync events generated before the
[Coordinator.SetDisplayPowerMode
] call reaches the hardware.
Calls that impact draft configurations, such as
[Coordinator.SetDisplayLayers
], still work while power_mode
is
set to OFF
.
[Coordinator.ApplyConfig
] also works while the power_mode
is
set to OFF
. When the display is powered back on, the display will
show the latest applied configuration.
Newly added displays has ON
power mode.
Trait Implementations§
Source§impl Clone for CoordinatorSetDisplayPowerModeRequest
impl Clone for CoordinatorSetDisplayPowerModeRequest
Source§fn clone(&self) -> CoordinatorSetDisplayPowerModeRequest
fn clone(&self) -> CoordinatorSetDisplayPowerModeRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<D> Decode<CoordinatorSetDisplayPowerModeRequest, D> for CoordinatorSetDisplayPowerModeRequestwhere
D: ResourceDialect,
impl<D> Decode<CoordinatorSetDisplayPowerModeRequest, D> for CoordinatorSetDisplayPowerModeRequestwhere
D: ResourceDialect,
Source§fn new_empty() -> CoordinatorSetDisplayPowerModeRequest
fn new_empty() -> CoordinatorSetDisplayPowerModeRequest
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.Source§impl<D> Encode<CoordinatorSetDisplayPowerModeRequest, D> for &CoordinatorSetDisplayPowerModeRequestwhere
D: ResourceDialect,
impl<D> Encode<CoordinatorSetDisplayPowerModeRequest, D> for &CoordinatorSetDisplayPowerModeRequestwhere
D: ResourceDialect,
Source§impl PartialEq for CoordinatorSetDisplayPowerModeRequest
impl PartialEq for CoordinatorSetDisplayPowerModeRequest
Source§fn eq(&self, other: &CoordinatorSetDisplayPowerModeRequest) -> bool
fn eq(&self, other: &CoordinatorSetDisplayPowerModeRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl TypeMarker for CoordinatorSetDisplayPowerModeRequest
impl TypeMarker for CoordinatorSetDisplayPowerModeRequest
Source§type Owned = CoordinatorSetDisplayPowerModeRequest
type Owned = CoordinatorSetDisplayPowerModeRequest
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
.Source§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 moreSource§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.Source§impl ValueTypeMarker for CoordinatorSetDisplayPowerModeRequest
impl ValueTypeMarker for CoordinatorSetDisplayPowerModeRequest
Source§type Borrowed<'a> = &'a CoordinatorSetDisplayPowerModeRequest
type Borrowed<'a> = &'a CoordinatorSetDisplayPowerModeRequest
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreSource§fn borrow(
value: &<CoordinatorSetDisplayPowerModeRequest as TypeMarker>::Owned,
) -> <CoordinatorSetDisplayPowerModeRequest as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<CoordinatorSetDisplayPowerModeRequest as TypeMarker>::Owned, ) -> <CoordinatorSetDisplayPowerModeRequest as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Persistable for CoordinatorSetDisplayPowerModeRequest
impl StructuralPartialEq for CoordinatorSetDisplayPowerModeRequest
Auto Trait Implementations§
impl Freeze for CoordinatorSetDisplayPowerModeRequest
impl RefUnwindSafe for CoordinatorSetDisplayPowerModeRequest
impl Send for CoordinatorSetDisplayPowerModeRequest
impl Sync for CoordinatorSetDisplayPowerModeRequest
impl Unpin for CoordinatorSetDisplayPowerModeRequest
impl UnwindSafe for CoordinatorSetDisplayPowerModeRequest
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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