pub struct PowerStatsProvider { /* private fields */ }Expand description
Connected fuchsia.hardware.power.stats.Service provider instance and its reported entities.
Implementations§
Source§impl PowerStatsProvider
impl PowerStatsProvider
Sourcepub fn new(
instance_name: impl Into<String>,
entity_names: impl IntoIterator<Item = impl Into<String>>,
proxy: DeviceSynchronousProxy,
) -> Self
pub fn new( instance_name: impl Into<String>, entity_names: impl IntoIterator<Item = impl Into<String>>, proxy: DeviceSynchronousProxy, ) -> Self
Creates a PowerStatsProvider for instance_name serving entity_names over proxy.
Sourcepub fn instance_name(&self) -> &str
pub fn instance_name(&self) -> &str
Name of the service instance within fuchsia.hardware.power.stats.Service.
Sourcepub fn entity_names(&self) -> &HashSet<String>
pub fn entity_names(&self) -> &HashSet<String>
Names of the newly discovered power entities announced by this provider.
Entities that were already announced by an earlier provider (whether still active or disconnected) are excluded so listeners observe each discovered entity name only once.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PowerStatsProvider
impl RefUnwindSafe for PowerStatsProvider
impl Send for PowerStatsProvider
impl Sync for PowerStatsProvider
impl Unpin for PowerStatsProvider
impl UnsafeUnpin for PowerStatsProvider
impl UnwindSafe for PowerStatsProvider
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [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> ⓘ
Converts
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> ⓘ
Converts
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