pub async fn handle_graphical_presenter_request_stream(
        mut request_stream: felement::GraphicalPresenterRequestStream,
        graphical_presenter_proxy: felement::GraphicalPresenterProxy,
    ) -> Result<(), Error> {
        while let Some(request) = request_stream
            .try_next()
            .await
            .context("Error handling Graphical Presenter request stream")?
        {
            match request {
                felement::GraphicalPresenterRequest::PresentView {
                    view_spec,
                    annotation_controller,
                    view_controller_request,
                    responder,
                } => {
                    let mut result = graphical_presenter_proxy
                        .present_view(view_spec, annotation_controller, view_controller_request)
                        .await?;
                    responder.send(&mut result)?;
                }
            };
        }
        Ok(())
    }
/// Serves a specified [`GraphicalPresenterRequestStream`].
///
/// # Parameters
/// - `request_stream`: the GraphicalPresenterRequestStream.
/// - `graphical_presenter_proxy`: the GraphicalPresenterProxy that will handle the relayed commands.
///
/// # Errors
/// When an error is encountered reading from the request stream.
Serves a specified [`GraphicalPresenterRequestStream`].
Serves a specified [ ` GraphicalPresenterRequestStream ` ] .
pub async fn handle_graphical_presenter_request_stream(
        mut request_stream: felement::GraphicalPresenterRequestStream,
        graphical_presenter_proxy: felement::GraphicalPresenterProxy,
    ) -> Result<(), Error> {
        while let Some(request) = request_stream
            .try_next()
            .await
            .context("Error handling Graphical Presenter request stream")?
        {
            match request {
                felement::GraphicalPresenterRequest::PresentView {
                    view_spec,
                    annotation_controller,
                    view_controller_request,
                    responder,
                } => {
                    let mut result = graphical_presenter_proxy
                        .present_view(view_spec, annotation_controller, view_controller_request)
                        .await?;
                    responder.send(&mut result)?;
                }
            };
        }
        Ok(())
    }
pub async fn handle_graphical_presenter_request_stream ( mut request_stream : felement :: GraphicalPresenterRequestStream , graphical_presenter_proxy : felement :: GraphicalPresenterProxy , ) -> Result < ( ) , Error > { while let Some ( request ) = request_stream . try_next ( ) . await . context ( " " ) ? { match request { felement :: GraphicalPresenterRequest :: PresentView { view_spec , annotation_controller , view_controller_request , responder , } => { let mut result = graphical_presenter_proxy . present_view ( view_spec , annotation_controller , view_controller_request ) . await ? ; responder . send ( & mut result ) ? ; } } ; } Ok ( ( ) ) }
Serves a specified [`GraphicalPresenterRequestStream`].
Serves a specified [ ` GraphicalPresenterRequestStream ` ] .
request_stream
felement::GraphicalPresenterRequestStream
graphical_presenter_proxy
felement::GraphicalPresenterProxy
request_stream
felement::GraphicalPresenterRequestStream
None
graphical_presenter_proxy
felement::GraphicalPresenterProxy
the GraphicalPresenterProxy that will handle the relayed commands.
the GraphicalPresenterProxy that will handle the relayed commands .
errors
When an error is encountered reading from the request stream.
When an error is encountered reading from the request stream .