pub struct ScenicProxy { /* private fields */ }
Implementations§
Source§impl ScenicProxy
impl ScenicProxy
Sourcepub fn take_event_stream(&self) -> ScenicEventStream
pub fn take_event_stream(&self) -> ScenicEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn create_session_t( &self, endpoints: SessionEndpoints, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<DisplayInfo, DefaultFuchsiaResourceDialect>
pub fn get_display_info( &self, ) -> QueryResponseFut<DisplayInfo, DefaultFuchsiaResourceDialect>
Get information about the Scenic’s primary display.
Sourcepub fn get_display_ownership_event(
&self,
) -> QueryResponseFut<Event, DefaultFuchsiaResourceDialect>
pub fn get_display_ownership_event( &self, ) -> QueryResponseFut<Event, DefaultFuchsiaResourceDialect>
Gets an event signaled with displayOwnedSignal or displayNotOwnedSignal when display ownership changes.
Sourcepub fn take_screenshot(
&self,
) -> QueryResponseFut<(ScreenshotData, bool), DefaultFuchsiaResourceDialect>
pub fn take_screenshot( &self, ) -> QueryResponseFut<(ScreenshotData, bool), DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<bool, DefaultFuchsiaResourceDialect>
pub fn uses_flatland( &self, ) -> QueryResponseFut<bool, DefaultFuchsiaResourceDialect>
Returns whether the clients should use [fuchsia.ui.composition/Flatland
] protocol to
interact with Scenic instead.
Trait Implementations§
Source§impl Clone for ScenicProxy
impl Clone for ScenicProxy
Source§fn clone(&self) -> ScenicProxy
fn clone(&self) -> ScenicProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ScenicProxy
impl Debug for ScenicProxy
Source§impl Proxy for ScenicProxy
impl Proxy for ScenicProxy
Source§type Protocol = ScenicMarker
type Protocol = ScenicMarker
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>
Source§impl ScenicProxyInterface for ScenicProxy
impl ScenicProxyInterface for ScenicProxy
type CreateSessionTResponseFut = QueryResponseFut<()>
type GetDisplayInfoResponseFut = QueryResponseFut<DisplayInfo>
type GetDisplayOwnershipEventResponseFut = QueryResponseFut<Event>
type TakeScreenshotResponseFut = QueryResponseFut<(ScreenshotData, bool)>
type UsesFlatlandResponseFut = QueryResponseFut<bool>
fn create_session( &self, session: ServerEnd<SessionMarker>, listener: Option<ClientEnd<SessionListenerMarker>>, ) -> Result<(), Error>
fn create_session2( &self, session: ServerEnd<SessionMarker>, listener: Option<ClientEnd<SessionListenerMarker>>, view_focuser: Option<ServerEnd<FocuserMarker>>, ) -> Result<(), Error>
fn create_session_t( &self, endpoints: SessionEndpoints, ) -> Self::CreateSessionTResponseFut
fn get_display_info(&self) -> Self::GetDisplayInfoResponseFut
fn get_display_ownership_event( &self, ) -> Self::GetDisplayOwnershipEventResponseFut
fn take_screenshot(&self) -> Self::TakeScreenshotResponseFut
fn uses_flatland(&self) -> Self::UsesFlatlandResponseFut
Auto Trait Implementations§
impl Freeze for ScenicProxy
impl !RefUnwindSafe for ScenicProxy
impl Send for ScenicProxy
impl Sync for ScenicProxy
impl Unpin for ScenicProxy
impl !UnwindSafe for ScenicProxy
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
)