pub trait ElementRunnerServerHandler<___T = Channel>where
___T: Transport,{
// Required method
fn set_level(
&mut self,
request: Request<SetLevel, ___T>,
responder: Responder<SetLevel, ___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 ElementRunner protocol.
See ElementRunner for more details.
Required Methods§
Sourcefn set_level(
&mut self,
request: Request<SetLevel, ___T>,
responder: Responder<SetLevel, ___T>,
) -> impl Future<Output = ()> + Send
fn set_level( &mut self, request: Request<SetLevel, ___T>, responder: Responder<SetLevel, ___T>, ) -> impl Future<Output = ()> + Send
Sets the level of the power element.
The server blocks while making the level transition. It returns once the transition to the new required level is complete. If the element cannot transition to the new required level and it cannot retry, the channel will be closed.
Provided Methods§
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.