Skip to main content

Command

Enum Command 

Source
pub enum Command {
Show 24 variants NoOperation, Basic(Command), ApplicationStatus(Command), BinarySwitch(Command), MultilevelSwitch(Command), BinarySensor(Command), MultilevelSensor(Command), Meter(Command), Crc16Encapsulation(Command), DeviceResetLocally(Command), ZwavePlusInfo(Command), MultiChannel(Command), Supervision(Command), Configuration(Command), Notification(Command), ManufacturerSpecific(Command), FirmwareUpdateMd(Command), Battery(Command), WakeUp(Command), Association(Command), Version(Command), Security(Command), Security2(Command), Unknown(RawCommand),
}
Expand description

A parsed command of any known command class.

Variants§

§

NoOperation

No Operation (0x00), a ping with no command id.

§

Basic(Command)

Basic.

§

ApplicationStatus(Command)

Application Status.

§

BinarySwitch(Command)

Binary Switch.

§

MultilevelSwitch(Command)

Multilevel Switch.

§

BinarySensor(Command)

Binary Sensor.

§

MultilevelSensor(Command)

Multilevel Sensor.

§

Meter(Command)

Meter.

§

Crc16Encapsulation(Command)

CRC-16 Encapsulation.

§

DeviceResetLocally(Command)

Device Reset Locally.

§

ZwavePlusInfo(Command)

Z-Wave Plus Info.

§

MultiChannel(Command)

Multi Channel.

§

Supervision(Command)

Supervision.

§

Configuration(Command)

Configuration.

§

Notification(Command)

Notification.

§

ManufacturerSpecific(Command)

Manufacturer Specific.

§

FirmwareUpdateMd(Command)

Firmware Update Meta Data.

§

Battery(Command)

Battery.

§

WakeUp(Command)

Wake Up.

§

Association(Command)

Association.

§

Version(Command)

Version.

§

Security(Command)

Security 0.

§

Security2(Command)

Security 2.

§

Unknown(RawCommand)

A command class or command these definitions do not cover.

Implementations§

Source§

impl Command

Source

pub fn cc(&self) -> u16

The command class id.

Source

pub fn command_id(&self) -> u8

The command id (0 for No Operation).

Source

pub fn name(&self) -> String

class.command, e.g. multilevel_sensor.report.

Source§

impl Command

Source

pub fn parse(frame: &[u8]) -> Result<Command, ParseError>

Parses a command class frame: class id (two bytes from 0xF1), command id, payload. Unknown classes and commands come back as Command::Unknown.

Source

pub fn encode(&self) -> Vec<u8> ⓘ

Serializes the command: class id, command id, payload.

Trait Implementations§

Source§

impl Clone for Command

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Command

Source§

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

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

impl Eq for Command

Source§

impl From<ActivationReport> for Command

Source§

fn from(c: ActivationReport) -> Self

Converts to this type from the input type.
Source§

impl From<ActivationSet> for Command

Source§

fn from(c: ActivationSet) -> Self

Converts to this type from the input type.
Source§

impl From<AggregatedMembersGet> for Command

Source§

fn from(c: AggregatedMembersGet) -> Self

Converts to this type from the input type.
Source§

impl From<AggregatedMembersReport> for Command

Source§

fn from(c: AggregatedMembersReport) -> Self

Converts to this type from the input type.
Source§

impl From<Busy> for Command

Source§

fn from(c: Busy) -> Self

Converts to this type from the input type.
Source§

impl From<CapabilitiesGet> for Command

Source§

fn from(c: CapabilitiesGet) -> Self

Converts to this type from the input type.
Source§

impl From<CapabilitiesReport> for Command

Source§

fn from(c: CapabilitiesReport) -> Self

Converts to this type from the input type.
Source§

impl From<CapabilityGet> for Command

Source§

fn from(c: CapabilityGet) -> Self

Converts to this type from the input type.
Source§

impl From<CapabilityReport> for Command

Source§

fn from(c: CapabilityReport) -> Self

Converts to this type from the input type.
Source§

impl From<CommandClassGet> for Command

Source§

fn from(c: CommandClassGet) -> Self

Converts to this type from the input type.
Source§

impl From<CommandClassReport> for Command

Source§

fn from(c: CommandClassReport) -> Self

Converts to this type from the input type.
Source§

impl From<CommandEncapsulation> for Command

Source§

fn from(c: CommandEncapsulation) -> Self

Converts to this type from the input type.
Source§

impl From<CommandsSupportedGet> for Command

Source§

fn from(c: CommandsSupportedGet) -> Self

Converts to this type from the input type.
Source§

impl From<CommandsSupportedGet> for Command

Source§

fn from(c: CommandsSupportedGet) -> Self

Converts to this type from the input type.
Source§

impl From<CommandsSupportedReport> for Command

Source§

fn from(c: CommandsSupportedReport) -> Self

Converts to this type from the input type.
Source§

impl From<CommandsSupportedReport> for Command

Source§

fn from(c: CommandsSupportedReport) -> Self

Converts to this type from the input type.
Source§

impl From<DefaultReset> for Command

Source§

fn from(c: DefaultReset) -> Self

Converts to this type from the input type.
Source§

impl From<DeviceSpecificGet> for Command

Source§

fn from(c: DeviceSpecificGet) -> Self

Converts to this type from the input type.
Source§

impl From<DeviceSpecificReport> for Command

Source§

fn from(c: DeviceSpecificReport) -> Self

Converts to this type from the input type.
Source§

impl From<Encapsulation> for Command

Source§

fn from(c: Encapsulation) -> Self

Converts to this type from the input type.
Source§

impl From<EndPointFind> for Command

Source§

fn from(c: EndPointFind) -> Self

Converts to this type from the input type.
Source§

impl From<EndPointFindReport> for Command

Source§

fn from(c: EndPointFindReport) -> Self

Converts to this type from the input type.
Source§

impl From<EndPointGet> for Command

Source§

fn from(c: EndPointGet) -> Self

Converts to this type from the input type.
Source§

impl From<EndPointReport> for Command

Source§

fn from(c: EndPointReport) -> Self

Converts to this type from the input type.
Source§

impl From<EventSupportedGet> for Command

Source§

fn from(c: EventSupportedGet) -> Self

Converts to this type from the input type.
Source§

impl From<EventSupportedReport> for Command

Source§

fn from(c: EventSupportedReport) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<Get> for Command

Source§

fn from(c: Get) -> Self

Converts to this type from the input type.
Source§

impl From<GroupingsGet> for Command

Source§

fn from(c: GroupingsGet) -> Self

Converts to this type from the input type.
Source§

impl From<GroupingsReport> for Command

Source§

fn from(c: GroupingsReport) -> Self

Converts to this type from the input type.
Source§

impl From<HealthGet> for Command

Source§

fn from(c: HealthGet) -> Self

Converts to this type from the input type.
Source§

impl From<HealthReport> for Command

Source§

fn from(c: HealthReport) -> Self

Converts to this type from the input type.
Source§

impl From<InfoGet> for Command

Source§

fn from(c: InfoGet) -> Self

Converts to this type from the input type.
Source§

impl From<InfoReport> for Command

Source§

fn from(c: InfoReport) -> Self

Converts to this type from the input type.
Source§

impl From<IntervalCapabilitiesGet> for Command

Source§

fn from(c: IntervalCapabilitiesGet) -> Self

Converts to this type from the input type.
Source§

impl From<IntervalCapabilitiesReport> for Command

Source§

fn from(c: IntervalCapabilitiesReport) -> Self

Converts to this type from the input type.
Source§

impl From<IntervalGet> for Command

Source§

fn from(c: IntervalGet) -> Self

Converts to this type from the input type.
Source§

impl From<IntervalReport> for Command

Source§

fn from(c: IntervalReport) -> Self

Converts to this type from the input type.
Source§

impl From<IntervalSet> for Command

Source§

fn from(c: IntervalSet) -> Self

Converts to this type from the input type.
Source§

impl From<KexFail> for Command

Source§

fn from(c: KexFail) -> Self

Converts to this type from the input type.
Source§

impl From<KexGet> for Command

Source§

fn from(c: KexGet) -> Self

Converts to this type from the input type.
Source§

impl From<KexReport> for Command

Source§

fn from(c: KexReport) -> Self

Converts to this type from the input type.
Source§

impl From<KexSet> for Command

Source§

fn from(c: KexSet) -> Self

Converts to this type from the input type.
Source§

impl From<MessageEncapsulation> for Command

Source§

fn from(c: MessageEncapsulation) -> Self

Converts to this type from the input type.
Source§

impl From<MessageEncapsulation> for Command

Source§

fn from(c: MessageEncapsulation) -> Self

Converts to this type from the input type.
Source§

impl From<MessageEncapsulationNonceGet> for Command

Source§

fn from(c: MessageEncapsulationNonceGet) -> Self

Converts to this type from the input type.
Source§

impl From<MetaDataGet> for Command

Source§

fn from(c: MetaDataGet) -> Self

Converts to this type from the input type.
Source§

impl From<MetaDataReport> for Command

Source§

fn from(c: MetaDataReport) -> Self

Converts to this type from the input type.
Source§

impl From<NameGet> for Command

Source§

fn from(c: NameGet) -> Self

Converts to this type from the input type.
Source§

impl From<NameReport> for Command

Source§

fn from(c: NameReport) -> Self

Converts to this type from the input type.
Source§

impl From<NetworkKeyGet> for Command

Source§

fn from(c: NetworkKeyGet) -> Self

Converts to this type from the input type.
Source§

impl From<NetworkKeyReport> for Command

Source§

fn from(c: NetworkKeyReport) -> Self

Converts to this type from the input type.
Source§

impl From<NetworkKeySet> for Command

Source§

fn from(c: NetworkKeySet) -> Self

Converts to this type from the input type.
Source§

impl From<NetworkKeyVerify> for Command

Source§

fn from(c: NetworkKeyVerify) -> Self

Converts to this type from the input type.
Source§

impl From<NetworkKeyVerify> for Command

Source§

fn from(c: NetworkKeyVerify) -> Self

Converts to this type from the input type.
Source§

impl From<NoMoreInformation> for Command

Source§

fn from(c: NoMoreInformation) -> Self

Converts to this type from the input type.
Source§

impl From<NonceGet> for Command

Source§

fn from(c: NonceGet) -> Self

Converts to this type from the input type.
Source§

impl From<NonceGet> for Command

Source§

fn from(c: NonceGet) -> Self

Converts to this type from the input type.
Source§

impl From<NonceReport> for Command

Source§

fn from(c: NonceReport) -> Self

Converts to this type from the input type.
Source§

impl From<NonceReport> for Command

Source§

fn from(c: NonceReport) -> Self

Converts to this type from the input type.
Source§

impl From<Notification> for Command

Source§

fn from(c: Notification) -> Self

Converts to this type from the input type.
Source§

impl From<Notification> for Command

Source§

fn from(c: Notification) -> Self

Converts to this type from the input type.
Source§

impl From<PropertiesGet> for Command

Source§

fn from(c: PropertiesGet) -> Self

Converts to this type from the input type.
Source§

impl From<PropertiesReport> for Command

Source§

fn from(c: PropertiesReport) -> Self

Converts to this type from the input type.
Source§

impl From<PublicKeyReport> for Command

Source§

fn from(c: PublicKeyReport) -> Self

Converts to this type from the input type.
Source§

impl From<RejectedRequest> for Command

Source§

fn from(c: RejectedRequest) -> Self

Converts to this type from the input type.
Source§

impl From<Remove> for Command

Source§

fn from(c: Remove) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<Report> for Command

Source§

fn from(c: Report) -> Self

Converts to this type from the input type.
Source§

impl From<RequestGet> for Command

Source§

fn from(c: RequestGet) -> Self

Converts to this type from the input type.
Source§

impl From<RequestReport> for Command

Source§

fn from(c: RequestReport) -> Self

Converts to this type from the input type.
Source§

impl From<Reset> for Command

Source§

fn from(c: Reset) -> Self

Converts to this type from the input type.
Source§

impl From<SchemeGet> for Command

Source§

fn from(c: SchemeGet) -> Self

Converts to this type from the input type.
Source§

impl From<SchemeInherit> for Command

Source§

fn from(c: SchemeInherit) -> Self

Converts to this type from the input type.
Source§

impl From<SchemeReport> for Command

Source§

fn from(c: SchemeReport) -> Self

Converts to this type from the input type.
Source§

impl From<Set> for Command

Source§

fn from(c: Set) -> Self

Converts to this type from the input type.
Source§

impl From<Set> for Command

Source§

fn from(c: Set) -> Self

Converts to this type from the input type.
Source§

impl From<Set> for Command

Source§

fn from(c: Set) -> Self

Converts to this type from the input type.
Source§

impl From<Set> for Command

Source§

fn from(c: Set) -> Self

Converts to this type from the input type.
Source§

impl From<Set> for Command

Source§

fn from(c: Set) -> Self

Converts to this type from the input type.
Source§

impl From<Set> for Command

Source§

fn from(c: Set) -> Self

Converts to this type from the input type.
Source§

impl From<SpecificGroupGet> for Command

Source§

fn from(c: SpecificGroupGet) -> Self

Converts to this type from the input type.
Source§

impl From<SpecificGroupReport> for Command

Source§

fn from(c: SpecificGroupReport) -> Self

Converts to this type from the input type.
Source§

impl From<StartLevelChange> for Command

Source§

fn from(c: StartLevelChange) -> Self

Converts to this type from the input type.
Source§

impl From<StatusReport> for Command

Source§

fn from(c: StatusReport) -> Self

Converts to this type from the input type.
Source§

impl From<StopLevelChange> for Command

Source§

fn from(c: StopLevelChange) -> Self

Converts to this type from the input type.
Source§

impl From<SupportedGet> for Command

Source§

fn from(c: SupportedGet) -> Self

Converts to this type from the input type.
Source§

impl From<SupportedGet> for Command

Source§

fn from(c: SupportedGet) -> Self

Converts to this type from the input type.
Source§

impl From<SupportedGet> for Command

Source§

fn from(c: SupportedGet) -> Self

Converts to this type from the input type.
Source§

impl From<SupportedGet> for Command

Source§

fn from(c: SupportedGet) -> Self

Converts to this type from the input type.
Source§

impl From<SupportedReport> for Command

Source§

fn from(c: SupportedReport) -> Self

Converts to this type from the input type.
Source§

impl From<SupportedReport> for Command

Source§

fn from(c: SupportedReport) -> Self

Converts to this type from the input type.
Source§

impl From<SupportedReport> for Command

Source§

fn from(c: SupportedReport) -> Self

Converts to this type from the input type.
Source§

impl From<SupportedReport> for Command

Source§

fn from(c: SupportedReport) -> Self

Converts to this type from the input type.
Source§

impl From<SupportedScaleGet> for Command

Source§

fn from(c: SupportedScaleGet) -> Self

Converts to this type from the input type.
Source§

impl From<SupportedScaleReport> for Command

Source§

fn from(c: SupportedScaleReport) -> Self

Converts to this type from the input type.
Source§

impl From<SupportedSensorGet> for Command

Source§

fn from(c: SupportedSensorGet) -> Self

Converts to this type from the input type.
Source§

impl From<SupportedSensorReport> for Command

Source§

fn from(c: SupportedSensorReport) -> Self

Converts to this type from the input type.
Source§

impl From<TransferEnd> for Command

Source§

fn from(c: TransferEnd) -> Self

Converts to this type from the input type.
Source§

impl From<ZwaveSoftwareGet> for Command

Source§

fn from(c: ZwaveSoftwareGet) -> Self

Converts to this type from the input type.
Source§

impl From<ZwaveSoftwareReport> for Command

Source§

fn from(c: ZwaveSoftwareReport) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Command

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Command

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.