Skip to main content

ControllerServerHandler

Trait ControllerServerHandler 

Source
pub trait ControllerServerHandler<___T: Transport = Channel> {
    // Required method
    fn open_session(
        &mut self,
        request: Request<OpenSession, ___T>,
    ) -> impl Future<Output = ()> + Send;
}
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 = ()> + Send

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", so this trait is not object safe.

Implementors§