pub enum PowerTokenProviderRequest {
GetToken {
responder: PowerTokenProviderGetTokenResponder,
},
#[non_exhaustive]
_UnknownMethod {
ordinal: u64,
control_handle: PowerTokenProviderControlHandle,
method_type: MethodType,
},
}
Variants§
GetToken
Returns a token which can be used with fuchsia.power.broker
APIs to
create a relationship between this driver’s power element(s) and the
power element this token is associated with.
Fields
§
responder: PowerTokenProviderGetTokenResponder
_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: PowerTokenProviderControlHandle
§
method_type: MethodType
Implementations§
Source§impl PowerTokenProviderRequest
impl PowerTokenProviderRequest
pub fn into_get_token(self) -> Option<PowerTokenProviderGetTokenResponder>
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 PowerTokenProviderRequest
impl !RefUnwindSafe for PowerTokenProviderRequest
impl Send for PowerTokenProviderRequest
impl Sync for PowerTokenProviderRequest
impl Unpin for PowerTokenProviderRequest
impl !UnwindSafe for PowerTokenProviderRequest
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