pub enum ElementControlRequest {
OpenStatusChannel {
status_channel: ServerEnd<StatusMarker>,
control_handle: ElementControlControlHandle,
},
RegisterDependencyToken {
token: Event,
dependency_type: DependencyType,
responder: ElementControlRegisterDependencyTokenResponder,
},
UnregisterDependencyToken {
token: Event,
responder: ElementControlUnregisterDependencyTokenResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ElementControlControlHandle,
method_type: MethodType,
},
}
Expand description
Provides element-scoped access to an element previously added via Topology.AddElement.
Variants§
OpenStatusChannel
Register a new Status channel on which Power Broker will send read-only updates of the element’s current power level. This method is intended to allow element owners to give read-only access to the element’s current power level to clients by opening and transferring this channel.
RegisterDependencyToken
Register a token which will permit the bearer to add either an assertive or opportunistic dependency upon this element, depending on the dependency_type specified.
UnregisterDependencyToken
Unregister a token previously registered via RegisterDependencyToken.
_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: ElementControlControlHandle
§
method_type: MethodType
Implementations§
Source§impl ElementControlRequest
impl ElementControlRequest
pub fn into_open_status_channel( self, ) -> Option<(ServerEnd<StatusMarker>, ElementControlControlHandle)>
pub fn into_register_dependency_token( self, ) -> Option<(Event, DependencyType, ElementControlRegisterDependencyTokenResponder)>
pub fn into_unregister_dependency_token( self, ) -> Option<(Event, ElementControlUnregisterDependencyTokenResponder)>
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 ElementControlRequest
impl !RefUnwindSafe for ElementControlRequest
impl Send for ElementControlRequest
impl Sync for ElementControlRequest
impl Unpin for ElementControlRequest
impl !UnwindSafe for ElementControlRequest
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