pub enum HandoffRequest {
Take {
responder: HandoffTakeResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: HandoffControlHandle,
method_type: MethodType,
},
}
Expand description
Lets the session manager handoff a power lease to a session component.
As an example, session_manager
may take a lease on the
ApplicationActivity
power element, and offer [Handoff
] to the
session component. The session component can then take the lease from
session_manager
when it is started. This way a constant dependency
is maintained on ApplicationActivity
as the session is restarted.
Variants§
Take
Take the lease.
Fields
§
responder: HandoffTakeResponder
_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: HandoffControlHandle
§
method_type: MethodType
Implementations§
Source§impl HandoffRequest
impl HandoffRequest
pub fn into_take(self) -> Option<HandoffTakeResponder>
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 HandoffRequest
impl !RefUnwindSafe for HandoffRequest
impl Send for HandoffRequest
impl Sync for HandoffRequest
impl Unpin for HandoffRequest
impl !UnwindSafe for HandoffRequest
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