pub struct CoordinatorListenerProxy { /* private fields */ }
Implementations§
Source§impl CoordinatorListenerProxy
impl CoordinatorListenerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.hardware.display/CoordinatorListener.
Sourcepub fn take_event_stream(&self) -> CoordinatorListenerEventStream
pub fn take_event_stream(&self) -> CoordinatorListenerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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 Clone for CoordinatorListenerProxy
impl Clone for CoordinatorListenerProxy
Source§fn clone(&self) -> CoordinatorListenerProxy
fn clone(&self) -> CoordinatorListenerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl CoordinatorListenerProxyInterface for CoordinatorListenerProxy
impl CoordinatorListenerProxyInterface for CoordinatorListenerProxy
fn on_displays_changed( &self, added: &[Info], removed: &[DisplayId], ) -> Result<(), Error>
fn on_vsync( &self, display_id: &DisplayId, timestamp: i64, applied_config_stamp: &ConfigStamp, cookie: &VsyncAckCookie, ) -> Result<(), Error>
fn on_client_ownership_change(&self, has_ownership: bool) -> Result<(), Error>
Source§impl Debug for CoordinatorListenerProxy
impl Debug for CoordinatorListenerProxy
Source§impl Proxy for CoordinatorListenerProxy
impl Proxy for CoordinatorListenerProxy
Source§type Protocol = CoordinatorListenerMarker
type Protocol = CoordinatorListenerMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for CoordinatorListenerProxy
impl !RefUnwindSafe for CoordinatorListenerProxy
impl Send for CoordinatorListenerProxy
impl Sync for CoordinatorListenerProxy
impl Unpin for CoordinatorListenerProxy
impl !UnwindSafe for CoordinatorListenerProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)