pub struct AndroidPowerConfig {
pub battery_poll_ms: Option<u32>,
pub battery_counters: Vec<i32>,
pub collect_power_rails: Option<bool>,
pub collect_energy_estimation_breakdown: Option<bool>,
pub collect_entity_state_residency: Option<bool>,
}Fields§
§battery_poll_ms: Option<u32>§battery_counters: Vec<i32>§collect_power_rails: Option<bool>Where available enables per-power-rail measurements.
collect_energy_estimation_breakdown: Option<bool>Provides a breakdown of energy estimation for various subsystem (e.g. GPU). Available from Android S.
collect_entity_state_residency: Option<bool>Provides a breakdown of time in state for various subsystems. Available from Android U.
Implementations§
Source§impl AndroidPowerConfig
impl AndroidPowerConfig
Sourcepub fn battery_poll_ms(&self) -> u32
pub fn battery_poll_ms(&self) -> u32
Returns the value of battery_poll_ms, or the default value if battery_poll_ms is unset.
Sourcepub fn battery_counters(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<BatteryCounters>>
pub fn battery_counters( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<BatteryCounters>>
Returns an iterator which yields the valid enum values contained in battery_counters.
Sourcepub fn push_battery_counters(&mut self, value: BatteryCounters)
pub fn push_battery_counters(&mut self, value: BatteryCounters)
Appends the provided enum value to battery_counters.
Sourcepub fn collect_power_rails(&self) -> bool
pub fn collect_power_rails(&self) -> bool
Returns the value of collect_power_rails, or the default value if collect_power_rails is unset.
Sourcepub fn collect_energy_estimation_breakdown(&self) -> bool
pub fn collect_energy_estimation_breakdown(&self) -> bool
Returns the value of collect_energy_estimation_breakdown, or the default value if collect_energy_estimation_breakdown is unset.
Sourcepub fn collect_entity_state_residency(&self) -> bool
pub fn collect_entity_state_residency(&self) -> bool
Returns the value of collect_entity_state_residency, or the default value if collect_entity_state_residency is unset.
Trait Implementations§
Source§impl Clone for AndroidPowerConfig
impl Clone for AndroidPowerConfig
Source§fn clone(&self) -> AndroidPowerConfig
fn clone(&self) -> AndroidPowerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AndroidPowerConfig
impl Debug for AndroidPowerConfig
Source§impl Default for AndroidPowerConfig
impl Default for AndroidPowerConfig
Source§fn default() -> AndroidPowerConfig
fn default() -> AndroidPowerConfig
Source§impl Message for AndroidPowerConfig
impl Message for AndroidPowerConfig
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 AndroidPowerConfig
impl PartialEq for AndroidPowerConfig
impl StructuralPartialEq for AndroidPowerConfig
Auto Trait Implementations§
impl Freeze for AndroidPowerConfig
impl RefUnwindSafe for AndroidPowerConfig
impl Send for AndroidPowerConfig
impl Sync for AndroidPowerConfig
impl Unpin for AndroidPowerConfig
impl UnwindSafe for AndroidPowerConfig
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].