pub enum CoordinatorListenerRequest {
OnDisplaysChanged {
added: Vec<Info>,
removed: Vec<DisplayId>,
control_handle: CoordinatorListenerControlHandle,
},
OnVsync {
display_id: DisplayId,
timestamp: i64,
applied_config_stamp: ConfigStamp,
cookie: VsyncAckCookie,
control_handle: CoordinatorListenerControlHandle,
},
OnClientOwnershipChange {
has_ownership: bool,
control_handle: CoordinatorListenerControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: CoordinatorListenerControlHandle,
method_type: MethodType,
},
}
Expand description
Provides updates from a Coordinator
to one of its clients.
Variants§
OnDisplaysChanged
Called when displays are added or removed. Called on client creation if there are any displays already connected.
A display change always invalidates the current configuration. When a
CoordinatorListener
receives this method call, the corresponding
Coordinator
client must either apply a new configuration or
revalidate and reapply their current configuration.
added
and removed
must not be both empty.
OnVsync
Called on every display Vertical Synchronization (Vsync) signal.
OnClientOwnershipChange
Called when the corresponding Coordinator
client gains or loses
ownership of the displays.
A Coordinator
client’s active config is displayed iff it holds the
ownership of the displays.
A new Coordinator
client should assume they do not have ownership
of the displays until this method informs them otherwise.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: CoordinatorListenerControlHandle
method_type: MethodType
Implementations§
Source§impl CoordinatorListenerRequest
impl CoordinatorListenerRequest
pub fn into_on_displays_changed( self, ) -> Option<(Vec<Info>, Vec<DisplayId>, CoordinatorListenerControlHandle)>
pub fn into_on_vsync( self, ) -> Option<(DisplayId, i64, ConfigStamp, VsyncAckCookie, CoordinatorListenerControlHandle)>
pub fn into_on_client_ownership_change( self, ) -> Option<(bool, CoordinatorListenerControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL