pub enum LessorRequest {
Lease {
level: u8,
responder: LessorLeaseResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: LessorControlHandle,
method_type: MethodType,
},
}
Expand description
Provides element-scoped access to request leases to raise the levels of an element previously added via Topology.AddElement.
Variants§
Lease
Request made to indicate client intends to raise the given element
to the given power level and wants to have its direct and transitive
power dependencies satisfied. When LeaseControl.WatchStatus
reports
LeaseStatus::SATISFIED
this does not indicate the PowerElement
is at
the leased PowerLevel
. Instead this indicates that the dependencies of
the leased PowerLevel
are at level required by the PowerLevel
.
Requesting an invalid level returns LeaseError::INVALID_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: LessorControlHandle
§
method_type: MethodType
Implementations§
Source§impl LessorRequest
impl LessorRequest
pub fn into_lease(self) -> Option<(u8, LessorLeaseResponder)>
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 LessorRequest
impl !RefUnwindSafe for LessorRequest
impl Send for LessorRequest
impl Sync for LessorRequest
impl Unpin for LessorRequest
impl !UnwindSafe for LessorRequest
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