pub enum ElementInfoProviderRequest {
GetElementPowerLevelNames {
responder: ElementInfoProviderGetElementPowerLevelNamesResponder,
},
GetStatusEndpoints {
responder: ElementInfoProviderGetStatusEndpointsResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ElementInfoProviderControlHandle,
method_type: MethodType,
},
}
Expand description
Provides an interface to retrieve information about PowerElements managed by a component.
Variants§
GetElementPowerLevelNames
Returns mappings of PowerLevels to plaintext names for each element managed by a component. Returns an error if no mappings can be returned.
Fields
GetStatusEndpoints
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).
Fields
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: ElementInfoProviderControlHandle
§
method_type: MethodType
Implementations§
Source§impl ElementInfoProviderRequest
impl ElementInfoProviderRequest
pub fn into_get_element_power_level_names( self, ) -> Option<ElementInfoProviderGetElementPowerLevelNamesResponder>
pub fn into_get_status_endpoints( self, ) -> Option<ElementInfoProviderGetStatusEndpointsResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ElementInfoProviderRequest
impl !RefUnwindSafe for ElementInfoProviderRequest
impl Send for ElementInfoProviderRequest
impl Sync for ElementInfoProviderRequest
impl Unpin for ElementInfoProviderRequest
impl !UnwindSafe for ElementInfoProviderRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more