ElementInfoProviderServerHandler

Trait ElementInfoProviderServerHandler 

Source
pub trait ElementInfoProviderServerHandler<___T: Transport = Channel> {
    // Required methods
    fn get_element_power_level_names(
        &mut self,
        responder: Responder<GetElementPowerLevelNames, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn get_status_endpoints(
        &mut self,
        responder: Responder<GetStatusEndpoints, ___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 ElementInfoProvider protocol.

See ElementInfoProvider for more details.

Required Methods§

Source

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

Returns mappings of PowerLevels to plaintext names for each element managed by a component. Returns an error if no mappings can be returned.

Source

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

Returns available Status client endpoints and stable identifiers for each element managed by a component. Returns an error if no endpoints can be returned (i.e. no elements were able to implement the Status channel).

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§