pub struct AndroidEnergyEstimationBreakdown {
pub energy_consumer_descriptor: Option<AndroidEnergyConsumerDescriptor>,
pub energy_consumer_id: Option<i32>,
pub energy_uws: Option<i64>,
pub per_uid_breakdown: Vec<EnergyUidBreakdown>,
}Expand description
Energy data retrieve using the ODPM(On Device Power Monitor) API. This proto represents the aidl class: android.hardware.power.stats.EnergyConsumerResult.
Fields§
§energy_consumer_descriptor: Option<AndroidEnergyConsumerDescriptor>The first trace packet of each session should include a energy consumer descriptor.
energy_consumer_id: Option<i32>ID of the AndroidEnergyConsumer associated with this result. Matches the energy_consumer_id in the AndroidEnergyConsumerDescriptor that should be sent at the beginning of a trace.
energy_uws: Option<i64>Total accumulated energy since boot in microwatt-seconds (uWs)
per_uid_breakdown: Vec<EnergyUidBreakdown>Optional attributed energy per Android ID / Linux UID for this EnergyConsumer. Sum total of attributed energy must be less than or equal to total accumulated energy.
Implementations§
Source§impl AndroidEnergyEstimationBreakdown
impl AndroidEnergyEstimationBreakdown
Sourcepub fn energy_consumer_id(&self) -> i32
pub fn energy_consumer_id(&self) -> i32
Returns the value of energy_consumer_id, or the default value if energy_consumer_id is unset.
Sourcepub fn energy_uws(&self) -> i64
pub fn energy_uws(&self) -> i64
Returns the value of energy_uws, or the default value if energy_uws is unset.
Trait Implementations§
Source§impl Clone for AndroidEnergyEstimationBreakdown
impl Clone for AndroidEnergyEstimationBreakdown
Source§fn clone(&self) -> AndroidEnergyEstimationBreakdown
fn clone(&self) -> AndroidEnergyEstimationBreakdown
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for AndroidEnergyEstimationBreakdown
impl Default for AndroidEnergyEstimationBreakdown
Source§fn default() -> AndroidEnergyEstimationBreakdown
fn default() -> AndroidEnergyEstimationBreakdown
Source§impl Message for AndroidEnergyEstimationBreakdown
impl Message for AndroidEnergyEstimationBreakdown
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for AndroidEnergyEstimationBreakdown
impl PartialEq for AndroidEnergyEstimationBreakdown
Source§fn eq(&self, other: &AndroidEnergyEstimationBreakdown) -> bool
fn eq(&self, other: &AndroidEnergyEstimationBreakdown) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AndroidEnergyEstimationBreakdown
Auto Trait Implementations§
impl Freeze for AndroidEnergyEstimationBreakdown
impl RefUnwindSafe for AndroidEnergyEstimationBreakdown
impl Send for AndroidEnergyEstimationBreakdown
impl Sync for AndroidEnergyEstimationBreakdown
impl Unpin for AndroidEnergyEstimationBreakdown
impl UnwindSafe for AndroidEnergyEstimationBreakdown
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].