StatusServerHandler

Trait StatusServerHandler 

Source
pub trait StatusServerHandler<___T: Transport = Channel> {
    // Required method
    fn watch_power_level(
        &mut self,
        responder: Responder<WatchPowerLevel, ___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 Status protocol.

See Status for more details.

Required Methods§

Source

fn watch_power_level( &mut self, responder: Responder<WatchPowerLevel, ___T>, ) -> impl Future<Output = ()> + Send

Returns the current power level for this element. The first call on this channel will return immediately. Subsequent calls will block until the current power level has changed.

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", so this trait is not object safe.

Implementors§