pub struct SuspendStats {
pub success_count: Option<u64>,
pub fail_count: Option<u64>,
pub last_failed_error: Option<i32>,
pub last_time_in_suspend: Option<i64>,
pub last_time_in_suspend_operations: Option<i64>,
/* private fields */
}
Expand description
A collection of statistics related to suspend/resume of the device.
Fields§
§success_count: Option<u64>
The number of times the device has successfully suspended.
fail_count: Option<u64>
The number of times the device has failed to suspend.
last_failed_error: Option<i32>
The error code logged after the last failed suspend attempt.
last_time_in_suspend: Option<i64>
The amount of time spent in the previous suspend state. May not be available on all platforms.
last_time_in_suspend_operations: Option<i64>
The amount of time spent performing suspend and resume operations for the previous suspend state. Suspend and resume operations are those actions taken by the platform in order to enter and exit, respectively, a suspended state.
Trait Implementations§
Source§impl Clone for SuspendStats
impl Clone for SuspendStats
Source§fn clone(&self) -> SuspendStats
fn clone(&self) -> SuspendStats
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SuspendStats
impl Debug for SuspendStats
Source§impl<D: ResourceDialect> Decode<SuspendStats, D> for SuspendStats
impl<D: ResourceDialect> Decode<SuspendStats, D> for SuspendStats
Source§impl Default for SuspendStats
impl Default for SuspendStats
Source§fn default() -> SuspendStats
fn default() -> SuspendStats
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<SuspendStats, D> for &SuspendStats
impl<D: ResourceDialect> Encode<SuspendStats, D> for &SuspendStats
Source§impl PartialEq for SuspendStats
impl PartialEq for SuspendStats
Source§impl TypeMarker for SuspendStats
impl TypeMarker for SuspendStats
Source§type Owned = SuspendStats
type Owned = SuspendStats
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for SuspendStats
impl ValueTypeMarker for SuspendStats
Source§type Borrowed<'a> = &'a SuspendStats
type Borrowed<'a> = &'a SuspendStats
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for SuspendStats
impl StructuralPartialEq for SuspendStats
Auto Trait Implementations§
impl Freeze for SuspendStats
impl RefUnwindSafe for SuspendStats
impl Send for SuspendStats
impl Sync for SuspendStats
impl Unpin for SuspendStats
impl UnwindSafe for SuspendStats
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)