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§
Sourcefn get_element_power_level_names(
&mut self,
responder: Responder<GetElementPowerLevelNames, ___T>,
) -> impl Future<Output = ()> + Send
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.
Sourcefn get_status_endpoints(
&mut self,
responder: Responder<GetStatusEndpoints, ___T>,
) -> impl Future<Output = ()> + Send
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§
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.