ClassPacket

Enum ClassPacket 

Source
pub enum ClassPacket {
Show 15 variants Unimplemented(UnimplementedPacket), SolarPower(SolarPowerPacket), StorageBattery(StorageBatteryPacket), Evps(EvpsPacket), Hp(HpPacket), SmartMeter(SmartMeterPacket), AirConditioner(AirConditionerPacket), Metering(MeteringPacket), FuelCell(FuelCellPacket), InstantaneousWaterHeater(InstantaneousWaterHeaterPacket), GeneralLighting(GeneralLightingPacket), MonoFunctionLighting(MonoFunctionLightingPacket), LightingSystem(LightingSystemPacket), Profile(ProfilePacket), Controller(ControllerPacket),
}
Expand description

Packet specified to an ECHONET class.

Variants§

§

Unimplemented(UnimplementedPacket)

Any unimplemented class fallback

§

SolarPower(SolarPowerPacket)

House hold solar power class packet

§

StorageBattery(StorageBatteryPacket)

Storage battery class packet

§

Evps(EvpsPacket)

Electric vehicle charger/discharger class packet

§

Hp(HpPacket)

Heat pump

§

SmartMeter(SmartMeterPacket)

Smart Meter class packet

§

AirConditioner(AirConditionerPacket)

Home Air Conditioner class packet

§

Metering(MeteringPacket)

Power Distribution Board Metering class packet

§

FuelCell(FuelCellPacket)

Fuel Cell class packet

§

InstantaneousWaterHeater(InstantaneousWaterHeaterPacket)

Instantaneous Water Heater class packet

§

GeneralLighting(GeneralLightingPacket)

General Lighting class packet

§

MonoFunctionLighting(MonoFunctionLightingPacket)

Mono Function Lighting class packet

§

LightingSystem(LightingSystemPacket)

Lighting System class packet

§

Profile(ProfilePacket)

Node profile class packet

§

Controller(ControllerPacket)

Controller class

Implementations§

Source§

impl ClassPacket

Source

pub fn new(eoj: EchonetObject, props: Properties) -> ClassPacket

Source

pub fn properties(&self) -> &Properties

fetches the properties for this ClassPacket, when appropriate.

Trait Implementations§

Source§

impl Display for ClassPacket

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ElPacket> for ClassPacket

Source§

fn from(value: ElPacket) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.