pub trait PinServerHandler<___T: Transport = Channel> {
// Required method
fn configure(
&mut self,
request: Request<Configure, ___T>,
responder: Responder<Configure, ___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 Pin protocol.
See Pin for more details.
Required Methods§
Sourcefn configure(
&mut self,
request: Request<Configure, ___T>,
responder: Responder<Configure, ___T>,
) -> impl Future<Output = ()> + Send
fn configure( &mut self, request: Request<Configure, ___T>, responder: Responder<Configure, ___T>, ) -> impl Future<Output = ()> + Send
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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".