pub struct CoordinatorListenerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CoordinatorListenerSynchronousProxy
impl CoordinatorListenerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CoordinatorListenerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CoordinatorListenerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn on_displays_changed(
&self,
added: &[Info],
removed: &[DisplayId],
) -> Result<(), Error>
pub fn on_displays_changed( &self, added: &[Info], removed: &[DisplayId], ) -> Result<(), Error>
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.
Sourcepub fn on_vsync(
&self,
display_id: &DisplayId,
timestamp: i64,
applied_config_stamp: &ConfigStamp,
cookie: &VsyncAckCookie,
) -> Result<(), Error>
pub fn on_vsync( &self, display_id: &DisplayId, timestamp: i64, applied_config_stamp: &ConfigStamp, cookie: &VsyncAckCookie, ) -> Result<(), Error>
Called on every display Vertical Synchronization (Vsync) signal.
Sourcepub fn on_client_ownership_change(
&self,
has_ownership: bool,
) -> Result<(), Error>
pub fn on_client_ownership_change( &self, has_ownership: bool, ) -> Result<(), Error>
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.
Trait Implementations§
Source§impl SynchronousProxy for CoordinatorListenerSynchronousProxy
impl SynchronousProxy for CoordinatorListenerSynchronousProxy
Source§type Proxy = CoordinatorListenerProxy
type Proxy = CoordinatorListenerProxy
Source§type Protocol = CoordinatorListenerMarker
type Protocol = CoordinatorListenerMarker
Proxy
controls.