Skip to main content

PinStatesServerHandler

Trait PinStatesServerHandler 

Source
pub trait PinStatesServerHandler<___T: Transport = Channel> {
    // Required method
    fn select_state(
        &mut self,
        request: Request<SelectState, ___T>,
        responder: Responder<SelectState, ___T>,
    ) -> impl Future<Output = ()> + Send;

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        ordinal: u64,
    ) -> impl Future<Output = ()> + Send { ... }
}
Expand description

A server handler for the PinStates protocol.

See PinStates for more details.

Required Methods§

Source

fn select_state( &mut self, request: Request<SelectState, ___T>, responder: Responder<SelectState, ___T>, ) -> impl Future<Output = ()> + Send

Configures the pins to the state with the given name.

Errors:

  • ZX_ERR_NOT_FOUND: The state with the given name is not found.
  • Other errors may be returned if applying the pin configuration fails. In case of failure, some pin configurations might have been applied, leaving the pins in a partially configured state.

Provided Methods§

Source

fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> + Send

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§