Skip to main content

PinStatesLocalServerHandler

Trait PinStatesLocalServerHandler 

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

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        ordinal: u64,
    ) -> impl Future<Output = ()> { ... }
}
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 = ()>

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 = ()>

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> PinStatesLocalServerHandler<___T> for Local<___H>
where ___H: PinStatesServerHandler<___T>, ___T: Transport,

Source§

async fn select_state( &mut self, request: Request<SelectState, ___T>, responder: Responder<SelectState, ___T>, )

Source§

async fn on_unknown_interaction(&mut self, ordinal: u64)

Implementors§