pub enum LessorRequest {
Lease {
level: u8,
responder: LessorLeaseResponder,
},
#[non_exhaustive] _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 the client wants the element raised to the given level. When the call returns this does not mean the corresponding element is at the requested level, only that the requested level is valid and request is being worked on.
Fulfilling the request will raise the level of all the level’s direct
and transitive power dependencies to their required levels. When
LeaseControl.WatchStatus reports LeaseStatus::SATISFIED this means
given element is at the level specified by the lease.
Requesting an invalid level returns LeaseError::INVALID_LEVEL.
#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: LessorControlHandlemethod_type: MethodTypeImplementations§
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