Skip to main content

PinLocalServerHandler

Trait PinLocalServerHandler 

Source
pub trait PinLocalServerHandler<___T = Channel>
where ___T: Transport,
{ // Required method fn configure( &mut self, request: Request<Configure, ___T>, responder: Responder<Configure, ___T>, ) -> impl Future<Output = ()>; // Provided method fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> { ... } }
Expand description

A server handler for the Pin protocol.

See Pin for more details.

Required Methods§

Source

fn configure( &mut self, request: Request<Configure, ___T>, responder: Responder<Configure, ___T>, ) -> impl Future<Output = ()>

Applies the configuration passed in config; see Configuration above. Fields not set in config are not changed. The drive strength is rounded up or capped to a value that the controller supports.

new_config contains the configuration of the pin after all supported fields have been set. Configure() can be called with an empty config to return the current configuration without making any changes.

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

Source§

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

Source§

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

Implementors§