Skip to main content

ControllerLocalServerHandler

Trait ControllerLocalServerHandler 

Source
pub trait ControllerLocalServerHandler<___T: Transport = Channel> {
    // Required method
    fn open_session(
        &mut self,
        request: Request<OpenSession, ___T>,
    ) -> impl Future<Output = ()>;
}
Expand description

A server handler for the Controller protocol.

See Controller for more details.

Required Methods§

Source

fn open_session( &mut self, request: Request<OpenSession, ___T>, ) -> impl Future<Output = ()>

Opens a new session on the device.

At most one session is permitted at one time; the server end will be closed with ZX_ERR_ALREADY_BOUND if a session already exists.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<___H, ___T> ControllerLocalServerHandler<___T> for Local<___H>
where ___H: ControllerServerHandler<___T>, ___T: Transport,

Source§

async fn open_session(&mut self, request: Request<OpenSession, ___T>)

Implementors§