pub struct PowerSourceAttrResponsesView<'a, 'r> { /* private fields */ }Expand description
Cluster-scoped response view onto a crate::im::ReportDataResp for the PowerSource cluster. Each method returns an iterator of (EndptId, Result<T, Error>) over the entries in attr_reports whose path matches that attribute. Attribute names that would collide with the view’s own inherent methods (see RESERVED_VIEW_METHOD_NAMES in the codegen) get an attr_ prefix.
Implementations§
Source§impl<'a, 'r> PowerSourceAttrResponsesView<'a, 'r>
impl<'a, 'r> PowerSourceAttrResponsesView<'a, 'r>
pub fn status( &self, ) -> impl Iterator<Item = (u16, Result<PowerSourceStatusEnum, Error>)> + use<'_, 'a, 'r>
pub fn order( &self, ) -> impl Iterator<Item = (u16, Result<u8, Error>)> + use<'_, 'a, 'r>
pub fn description( &self, ) -> impl Iterator<Item = (u16, Result<&'a str, Error>)> + use<'_, 'a, 'r>
pub fn wired_assessed_input_voltage( &self, ) -> impl Iterator<Item = (u16, Result<Maybe<u32, AsNullable>, Error>)> + use<'_, 'a, 'r>
pub fn wired_assessed_input_frequency( &self, ) -> impl Iterator<Item = (u16, Result<Maybe<u16, AsNullable>, Error>)> + use<'_, 'a, 'r>
pub fn wired_current_type( &self, ) -> impl Iterator<Item = (u16, Result<WiredCurrentTypeEnum, Error>)> + use<'_, 'a, 'r>
pub fn wired_assessed_current( &self, ) -> impl Iterator<Item = (u16, Result<Maybe<u32, AsNullable>, Error>)> + use<'_, 'a, 'r>
pub fn wired_nominal_voltage( &self, ) -> impl Iterator<Item = (u16, Result<u32, Error>)> + use<'_, 'a, 'r>
pub fn wired_maximum_current( &self, ) -> impl Iterator<Item = (u16, Result<u32, Error>)> + use<'_, 'a, 'r>
pub fn wired_present( &self, ) -> impl Iterator<Item = (u16, Result<bool, Error>)> + use<'_, 'a, 'r>
pub fn active_wired_faults( &self, ) -> impl Iterator<Item = (u16, Result<TLVContainer<'a, WiredFaultEnum, ArrayContainer>, Error>)> + use<'_, 'a, 'r>
pub fn bat_voltage( &self, ) -> impl Iterator<Item = (u16, Result<Maybe<u32, AsNullable>, Error>)> + use<'_, 'a, 'r>
pub fn bat_percent_remaining( &self, ) -> impl Iterator<Item = (u16, Result<Maybe<u8, AsNullable>, Error>)> + use<'_, 'a, 'r>
pub fn bat_time_remaining( &self, ) -> impl Iterator<Item = (u16, Result<Maybe<u32, AsNullable>, Error>)> + use<'_, 'a, 'r>
pub fn bat_charge_level( &self, ) -> impl Iterator<Item = (u16, Result<BatChargeLevelEnum, Error>)> + use<'_, 'a, 'r>
pub fn bat_replacement_needed( &self, ) -> impl Iterator<Item = (u16, Result<bool, Error>)> + use<'_, 'a, 'r>
pub fn bat_replaceability( &self, ) -> impl Iterator<Item = (u16, Result<BatReplaceabilityEnum, Error>)> + use<'_, 'a, 'r>
pub fn bat_present( &self, ) -> impl Iterator<Item = (u16, Result<bool, Error>)> + use<'_, 'a, 'r>
pub fn active_bat_faults( &self, ) -> impl Iterator<Item = (u16, Result<TLVContainer<'a, BatFaultEnum, ArrayContainer>, Error>)> + use<'_, 'a, 'r>
pub fn bat_replacement_description( &self, ) -> impl Iterator<Item = (u16, Result<&'a str, Error>)> + use<'_, 'a, 'r>
pub fn bat_common_designation( &self, ) -> impl Iterator<Item = (u16, Result<BatCommonDesignationEnum, Error>)> + use<'_, 'a, 'r>
pub fn bat_ansi_designation( &self, ) -> impl Iterator<Item = (u16, Result<&'a str, Error>)> + use<'_, 'a, 'r>
pub fn bat_iec_designation( &self, ) -> impl Iterator<Item = (u16, Result<&'a str, Error>)> + use<'_, 'a, 'r>
pub fn bat_approved_chemistry( &self, ) -> impl Iterator<Item = (u16, Result<BatApprovedChemistryEnum, Error>)> + use<'_, 'a, 'r>
pub fn bat_capacity( &self, ) -> impl Iterator<Item = (u16, Result<u32, Error>)> + use<'_, 'a, 'r>
pub fn bat_quantity( &self, ) -> impl Iterator<Item = (u16, Result<u8, Error>)> + use<'_, 'a, 'r>
pub fn bat_charge_state( &self, ) -> impl Iterator<Item = (u16, Result<BatChargeStateEnum, Error>)> + use<'_, 'a, 'r>
pub fn bat_time_to_full_charge( &self, ) -> impl Iterator<Item = (u16, Result<Maybe<u32, AsNullable>, Error>)> + use<'_, 'a, 'r>
pub fn bat_functional_while_charging( &self, ) -> impl Iterator<Item = (u16, Result<bool, Error>)> + use<'_, 'a, 'r>
pub fn bat_charging_current( &self, ) -> impl Iterator<Item = (u16, Result<Maybe<u32, AsNullable>, Error>)> + use<'_, 'a, 'r>
pub fn active_bat_charge_faults( &self, ) -> impl Iterator<Item = (u16, Result<TLVContainer<'a, BatChargeFaultEnum, ArrayContainer>, Error>)> + use<'_, 'a, 'r>
pub fn endpoint_list( &self, ) -> impl Iterator<Item = (u16, Result<TLVContainer<'a, u16, ArrayContainer>, Error>)> + use<'_, 'a, 'r>
pub fn generated_command_list( &self, ) -> impl Iterator<Item = (u16, Result<TLVContainer<'a, u32, ArrayContainer>, Error>)> + use<'_, 'a, 'r>
pub fn accepted_command_list( &self, ) -> impl Iterator<Item = (u16, Result<TLVContainer<'a, u32, ArrayContainer>, Error>)> + use<'_, 'a, 'r>
pub fn attribute_list( &self, ) -> impl Iterator<Item = (u16, Result<TLVContainer<'a, u32, ArrayContainer>, Error>)> + use<'_, 'a, 'r>
pub fn feature_map( &self, ) -> impl Iterator<Item = (u16, Result<u32, Error>)> + use<'_, 'a, 'r>
pub fn cluster_revision( &self, ) -> impl Iterator<Item = (u16, Result<u16, Error>)> + use<'_, 'a, 'r>
Auto Trait Implementations§
impl<'a, 'r> Freeze for PowerSourceAttrResponsesView<'a, 'r>
impl<'a, 'r> RefUnwindSafe for PowerSourceAttrResponsesView<'a, 'r>
impl<'a, 'r> Send for PowerSourceAttrResponsesView<'a, 'r>
impl<'a, 'r> Sync for PowerSourceAttrResponsesView<'a, 'r>
impl<'a, 'r> Unpin for PowerSourceAttrResponsesView<'a, 'r>
impl<'a, 'r> UnsafeUnpin for PowerSourceAttrResponsesView<'a, 'r>
impl<'a, 'r> UnwindSafe for PowerSourceAttrResponsesView<'a, 'r>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreSource§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
Source§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.