pub enum StatusRequest {
WatchPowerLevel {
responder: StatusWatchPowerLevelResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: StatusControlHandle,
method_type: MethodType,
},
}
Expand description
Provides read-only access to the current PowerLevel of an element and the ability to watch changes to an element’s power level. A new channel to this protocol can be obtained by calling OpenStatus on the element’s ElementControl channel (and passed to other clients who need access to the element’s current power level).
Variants§
WatchPowerLevel
Returns the current power level for this element. The first call on this channel will return immediately. Subsequent calls will block until the current power level has changed.
Fields
§
responder: StatusWatchPowerLevelResponder
_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: StatusControlHandle
§
method_type: MethodType
Implementations§
Source§impl StatusRequest
impl StatusRequest
pub fn into_watch_power_level(self) -> Option<StatusWatchPowerLevelResponder>
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 StatusRequest
impl !RefUnwindSafe for StatusRequest
impl Send for StatusRequest
impl Sync for StatusRequest
impl Unpin for StatusRequest
impl !UnwindSafe for StatusRequest
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