pub enum CurrentLevelRequest {
Update {
current_level: u8,
responder: CurrentLevelUpdateResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: CurrentLevelControlHandle,
method_type: MethodType,
},
}
Expand description
CurrentLevel and RequiredLevel must both be used by all managed Power Elements as part of the power level handshake with Power Broker:
- The element operator calls RequiredLevel.Watch to receive the next required level from Power Broker.
- The operator makes the changes necessary to transition to the new required level.
- The operator calls CurrentLevel.Update to inform Power Broker that it has completed the transition to the new level. Established via Topology.AddElement.
Variants§
Update
Sent by the element on initial startup and whenever there is a change in power level.
_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: CurrentLevelControlHandle
§
method_type: MethodType
Implementations§
Source§impl CurrentLevelRequest
impl CurrentLevelRequest
pub fn into_update(self) -> Option<(u8, CurrentLevelUpdateResponder)>
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 CurrentLevelRequest
impl !RefUnwindSafe for CurrentLevelRequest
impl Send for CurrentLevelRequest
impl Sync for CurrentLevelRequest
impl Unpin for CurrentLevelRequest
impl !UnwindSafe for CurrentLevelRequest
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