pub struct ScenicSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ScenicSynchronousProxy
impl ScenicSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ScenicEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ScenicEvent, 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 create_session(
&self,
session: ServerEnd<SessionMarker>,
listener: Option<ClientEnd<SessionListenerMarker>>,
) -> Result<(), Error>
pub fn create_session( &self, session: ServerEnd<SessionMarker>, listener: Option<ClientEnd<SessionListenerMarker>>, ) -> Result<(), Error>
Create a new Session, which is the primary way to interact with Scenic.
Sourcepub fn create_session2(
&self,
session: ServerEnd<SessionMarker>,
listener: Option<ClientEnd<SessionListenerMarker>>,
view_focuser: Option<ServerEnd<FocuserMarker>>,
) -> Result<(), Error>
pub fn create_session2( &self, session: ServerEnd<SessionMarker>, listener: Option<ClientEnd<SessionListenerMarker>>, view_focuser: Option<ServerEnd<FocuserMarker>>, ) -> Result<(), Error>
Create a new Session, which is the primary way to interact with Scenic.
In this variant, the caller may register a request for focus management.
The view_focuser
’s client is coupled to the requested session
, and
this coupling acts as a security boundary: the ViewRef used as the basis
for authority by view_focuser
must come from session
.
Sourcepub fn create_session_t(
&self,
endpoints: SessionEndpoints,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn create_session_t( &self, endpoints: SessionEndpoints, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Create a new Session, which is the primary way to interact with Scenic.
In this variant, the caller may submit a combination of protocols that make sense for it. The Session protocol is the only required protocol. The SessionEndpoints table may be extended with more protocol fields, but these extensions should retain ABI and API compatibility with existing (pre-compiled) clients.
The response acknowledges the request to create a Session, but actual creation may happen later.
Sourcepub fn get_display_info(
&self,
___deadline: MonotonicInstant,
) -> Result<DisplayInfo, Error>
pub fn get_display_info( &self, ___deadline: MonotonicInstant, ) -> Result<DisplayInfo, Error>
Get information about the Scenic’s primary display.
Sourcepub fn get_display_ownership_event(
&self,
___deadline: MonotonicInstant,
) -> Result<Event, Error>
pub fn get_display_ownership_event( &self, ___deadline: MonotonicInstant, ) -> Result<Event, Error>
Gets an event signaled with displayOwnedSignal or displayNotOwnedSignal when display ownership changes.
Sourcepub fn take_screenshot(
&self,
___deadline: MonotonicInstant,
) -> Result<(ScreenshotData, bool), Error>
pub fn take_screenshot( &self, ___deadline: MonotonicInstant, ) -> Result<(ScreenshotData, bool), Error>
Take a screenshot and return the data in img_data
. img_data
will
not contain BGRA data if success
is false.
Sourcepub fn uses_flatland(
&self,
___deadline: MonotonicInstant,
) -> Result<bool, Error>
pub fn uses_flatland( &self, ___deadline: MonotonicInstant, ) -> Result<bool, Error>
Returns whether the clients should use [fuchsia.ui.composition/Flatland
] protocol to
interact with Scenic instead.
Trait Implementations§
Source§impl Debug for ScenicSynchronousProxy
impl Debug for ScenicSynchronousProxy
Source§impl SynchronousProxy for ScenicSynchronousProxy
impl SynchronousProxy for ScenicSynchronousProxy
Source§type Proxy = ScenicProxy
type Proxy = ScenicProxy
Source§type Protocol = ScenicMarker
type Protocol = ScenicMarker
Proxy
controls.