pub enum StatsRequest {
Watch {
responder: StatsWatchResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: StatsControlHandle,
method_type: MethodType,
},
}
Expand description
A protocol for retrieving statistics related to suspend/resume operations.
Variants§
Watch
Gets the suspend statistics for the sytem.
Uses the hanging get pattern: the first call to this method will return immediately. For subsequent calls, the server will return only when suspend stats have changed.
Fields
§
responder: StatsWatchResponder
_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: StatsControlHandle
§
method_type: MethodType
Implementations§
Source§impl StatsRequest
impl StatsRequest
pub fn into_watch(self) -> Option<StatsWatchResponder>
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 StatsRequest
impl !RefUnwindSafe for StatsRequest
impl Send for StatsRequest
impl Sync for StatsRequest
impl Unpin for StatsRequest
impl !UnwindSafe for StatsRequest
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