pub trait ElementInfoProviderLocalServerHandler<___T: Transport = Channel> {
// Required methods
fn get_element_power_level_names(
&mut self,
responder: Responder<GetElementPowerLevelNames, ___T>,
) -> impl Future<Output = ()>;
fn get_status_endpoints(
&mut self,
responder: Responder<GetStatusEndpoints, ___T>,
) -> impl Future<Output = ()>;
// Provided method
fn on_unknown_interaction(
&mut self,
ordinal: u64,
) -> impl Future<Output = ()> { ... }
}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 = ()>
fn get_element_power_level_names( &mut self, responder: Responder<GetElementPowerLevelNames, ___T>, ) -> impl Future<Output = ()>
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 = ()>
fn get_status_endpoints( &mut self, responder: Responder<GetStatusEndpoints, ___T>, ) -> impl Future<Output = ()>
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§
fn on_unknown_interaction(&mut self, ordinal: u64) -> impl Future<Output = ()>
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.