fidl_fuchsia_ui_scenic

Trait ScenicProxyInterface

Source
pub trait ScenicProxyInterface: Send + Sync {
    type CreateSessionTResponseFut: Future<Output = Result<(), Error>> + Send;
    type GetDisplayInfoResponseFut: Future<Output = Result<DisplayInfo, Error>> + Send;
    type GetDisplayOwnershipEventResponseFut: Future<Output = Result<Event, Error>> + Send;
    type TakeScreenshotResponseFut: Future<Output = Result<(ScreenshotData, bool), Error>> + Send;
    type UsesFlatlandResponseFut: Future<Output = Result<bool, Error>> + Send;

    // Required methods
    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;
}

Required Associated Types§

Required Methods§

Source

fn create_session( &self, session: ServerEnd<SessionMarker>, listener: Option<ClientEnd<SessionListenerMarker>>, ) -> Result<(), Error>

Source

fn create_session2( &self, session: ServerEnd<SessionMarker>, listener: Option<ClientEnd<SessionListenerMarker>>, view_focuser: Option<ServerEnd<FocuserMarker>>, ) -> Result<(), Error>

Source

fn create_session_t( &self, endpoints: SessionEndpoints, ) -> Self::CreateSessionTResponseFut

Source

fn get_display_info(&self) -> Self::GetDisplayInfoResponseFut

Source

fn get_display_ownership_event( &self, ) -> Self::GetDisplayOwnershipEventResponseFut

Source

fn take_screenshot(&self) -> Self::TakeScreenshotResponseFut

Source

fn uses_flatland(&self) -> Self::UsesFlatlandResponseFut

Implementors§