Struct CoordinatorListenerOnVsyncRequest
pub struct CoordinatorListenerOnVsyncRequest {
pub display_id: DisplayId,
pub timestamp: i64,
pub applied_config_stamp: ConfigStamp,
pub cookie: VsyncAckCookie,
}
Fields§
§display_id: DisplayId
The display associated with the VSync event.
timestamp: i64
The time when the VSync occurred.
The accurrancy of this timestamp depends on the display hardware.
applied_config_stamp: ConfigStamp
Identifies the lastest configuration fully applied to the display.
Guaranteed to be a valid value.
If a configuration contains images that are still waiting to be ready, that configuration will be only partially applied (without the waiting image). That configuration’s stamp will not be reported here.
Used to acknowledge the receipt of VSync events.
A value of zero means no acknowledgement is required by the client.
Each non-zero cookie must be acknowledged immediately, via a call to
[Coordinator.AcknowledgeVsync
]. Cookies must be acknowledged even
if the client does not change the display’s configuration.
Trait Implementations§
§impl Clone for CoordinatorListenerOnVsyncRequest
impl Clone for CoordinatorListenerOnVsyncRequest
§fn clone(&self) -> CoordinatorListenerOnVsyncRequest
fn clone(&self) -> CoordinatorListenerOnVsyncRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for CoordinatorListenerOnVsyncRequest
impl Debug for CoordinatorListenerOnVsyncRequest
§impl<D> Decode<CoordinatorListenerOnVsyncRequest, D> for CoordinatorListenerOnVsyncRequestwhere
D: ResourceDialect,
impl<D> Decode<CoordinatorListenerOnVsyncRequest, D> for CoordinatorListenerOnVsyncRequestwhere
D: ResourceDialect,
§fn new_empty() -> CoordinatorListenerOnVsyncRequest
fn new_empty() -> CoordinatorListenerOnVsyncRequest
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<CoordinatorListenerOnVsyncRequest, D> for &CoordinatorListenerOnVsyncRequestwhere
D: ResourceDialect,
impl<D> Encode<CoordinatorListenerOnVsyncRequest, D> for &CoordinatorListenerOnVsyncRequestwhere
D: ResourceDialect,
§impl TypeMarker for CoordinatorListenerOnVsyncRequest
impl TypeMarker for CoordinatorListenerOnVsyncRequest
§type Owned = CoordinatorListenerOnVsyncRequest
type Owned = CoordinatorListenerOnVsyncRequest
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§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.§impl ValueTypeMarker for CoordinatorListenerOnVsyncRequest
impl ValueTypeMarker for CoordinatorListenerOnVsyncRequest
§type Borrowed<'a> = &'a CoordinatorListenerOnVsyncRequest
type Borrowed<'a> = &'a CoordinatorListenerOnVsyncRequest
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<CoordinatorListenerOnVsyncRequest as TypeMarker>::Owned,
) -> <CoordinatorListenerOnVsyncRequest as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<CoordinatorListenerOnVsyncRequest as TypeMarker>::Owned, ) -> <CoordinatorListenerOnVsyncRequest as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.