Enum RequestParameter

Source
pub enum RequestParameter {
Show 166 variants DiscMute, DiscUnMute, DiscUniqueBranch { lower_bound_uid: DeviceUID, upper_bound_uid: DeviceUID, }, GetCommsStatus, SetCommsStatus, GetQueuedMessage { status_type: StatusType, }, GetStatusMessages { status_type: StatusType, }, GetStatusIdDescription { status_id: u16, }, SetClearStatusId, GetSubDeviceIdStatusReportThreshold, SetSubDeviceIdStatusReportThreshold { status_type: StatusType, }, GetSupportedParameters, GetParameterDescription { parameter_id: u16, }, GetDeviceInfo, GetProductDetailIdList, GetDeviceModelDescription, GetManufacturerLabel, GetDeviceLabel, SetDeviceLabel { device_label: String, }, GetFactoryDefaults, SetFactoryDefaults, GetLanguageCapabilities, GetLanguage, SetLanguage { language: String, }, GetSoftwareVersionLabel, GetBootSoftwareVersionId, GetBootSoftwareVersionLabel, GetDmxPersonality, SetDmxPersonality { personality_id: u8, }, GetDmxPersonalityDescription { personality: u8, }, GetDmxStartAddress, SetDmxStartAddress { dmx_start_address: u16, }, GetSlotInfo, GetSlotDescription { slot_id: u16, }, GetDefaultSlotValue, GetSensorDefinition { sensor_id: u8, }, GetSensorValue { sensor_id: u8, }, SetSensorValue { sensor_id: u8, }, SetRecordSensors { sensor_id: u8, }, GetDeviceHours, SetDeviceHours { device_hours: u32, }, GetLampHours, SetLampHours { lamp_hours: u32, }, GetLampStrikes, SetLampStrikes { lamp_strikes: u32, }, GetLampState, SetLampState { lamp_state: LampState, }, GetLampOnMode, SetLampOnMode { lamp_on_mode: LampOnMode, }, GetDevicePowerCycles, SetDevicePowerCycles { device_power_cycles: u32, }, GetDisplayInvert, SetDisplayInvert { display_invert: DisplayInvertMode, }, GetDisplayLevel, SetDisplayLevel { display_level: u8, }, GetPanInvert, SetPanInvert { pan_invert: bool, }, GetTiltInvert, SetTiltInvert { tilt_invert: bool, }, GetPanTiltSwap, SetPanTiltSwap { pan_tilt_swap: bool, }, GetRealTimeClock, SetRealTimeClock { year: u16, month: u8, day: u8, hour: u8, minute: u8, second: u8, }, GetIdentifyDevice, SetIdentifyDevice { identify: bool, }, SetResetDevice { reset_device: ResetDeviceMode, }, GetPowerState, SetPowerState { power_state: PowerState, }, GetPerformSelfTest, SetPerformSelfTest { self_test_id: SelfTest, }, SetCapturePreset { scene_id: u16, fade_times: Option<FadeTimes>, }, GetSelfTestDescription { self_test_id: SelfTest, }, GetPresetPlayback, SetPresetPlayback { mode: PresetPlaybackMode, level: u8, }, GetDmxBlockAddress, SetDmxBlockAddress { dmx_block_address: u16, }, GetDmxFailMode, SetDmxFailMode { scene_id: PresetPlaybackMode, loss_of_signal_delay_time: TimeMode, hold_time: TimeMode, level: u8, }, GetDmxStartupMode, SetDmxStartupMode { scene_id: PresetPlaybackMode, startup_delay: TimeMode, hold_time: TimeMode, level: u8, }, GetDimmerInfo, GetMinimumLevel, SetMinimumLevel { minimum_level_increasing: u16, minimum_level_decreasing: u16, on_below_minimum: bool, }, GetMaximumLevel, SetMaximumLevel { maximum_level: u16, }, GetCurve, SetCurve { curve_id: u8, }, GetCurveDescription { curve_id: u8, }, GetOutputResponseTime, SetOutputResponseTime { output_response_time_id: u8, }, GetOutputResponseTimeDescription { output_response_time_id: u8, }, GetModulationFrequency, SetModulationFrequency { modulation_frequency_id: u8, }, GetModulationFrequencyDescription { modulation_frequency_id: u8, }, GetPowerOnSelfTest, SetPowerOnSelfTest { self_test_id: SelfTest, }, GetLockState, SetLockState { pin_code: PinCode, lock_state: bool, }, GetLockStateDescription, GetLockPin, SetLockPin { new_pin_code: PinCode, current_pin_code: PinCode, }, GetBurnIn, SetBurnIn { hours: u8, }, GetIdentifyMode, SetIdentifyMode { identify_mode: u8, }, GetPresetInfo, GetPresetStatus { scene_id: u16, }, GetPresetMergeMode, SetPresetMergeMode { merge_mode: MergeMode, }, SetPresetStatus { scene_id: u16, up_fade_time: u16, down_fade_time: u16, wait_time: u16, clear_preset: bool, }, GetListInterfaces, GetInterfaceLabel { interface_id: u32, }, GetInterfaceHardwareAddressType1 { interface_id: u32, }, GetIpV4DhcpMode { interface_id: u32, }, SetIpV4DhcpMode { interface_id: u32, dhcp_mode: bool, }, GetIpV4ZeroConfMode { interface_id: u32, }, SetIpV4ZeroConfMode { interface_id: u32, zero_conf_mode: bool, }, GetIpV4CurrentAddress { interface_id: u32, }, GetIpV4StaticAddress { interface_id: u32, }, SetIpV4StaticAddress { interface_id: u32, address: Ipv4Address, netmask: u8, }, SetInterfaceApplyConfiguration { interface_id: u32, }, SetInterfaceRenewDhcp { interface_id: u32, }, SetInterfaceReleaseDhcp { interface_id: u32, }, GetIpV4DefaultRoute, SetIpV4DefaultRoute { interface_id: u32, ipv4_default_route: Ipv4Route, }, GetDnsIpV4NameServer { name_server_index: u8, }, SetDnsIpV4NameServer { name_server_index: u8, name_server_address: Ipv4Address, }, GetDnsHostName, SetDnsHostName { host_name: String, }, GetDnsDomainName, SetDnsDomainName { domain_name: String, }, GetEndpointList, GetEndpointListChange, GetIdentifyEndpoint { endpoint_id: EndpointId, }, SetIdentifyEndpoint { endpoint_id: EndpointId, identify: bool, }, GetEndpointToUniverse { endpoint_id: EndpointId, }, SetEndpointToUniverse { endpoint_id: EndpointId, universe: u16, }, GetEndpointMode { endpoint_id: EndpointId, }, SetEndpointMode { endpoint_id: EndpointId, mode: EndpointMode, }, GetEndpointLabel { endpoint_id: EndpointId, }, SetEndpointLabel { endpoint_id: EndpointId, label: String, }, GetRdmTrafficEnable { endpoint_id: EndpointId, }, SetRdmTrafficEnable { endpoint_id: EndpointId, enable: bool, }, GetDiscoveryState { endpoint_id: EndpointId, }, SetDiscoveryState { endpoint_id: EndpointId, state: DiscoveryState, }, GetBackgroundDiscovery { endpoint_id: EndpointId, }, SetBackgroundDiscovery { endpoint_id: EndpointId, enable: bool, }, GetEndpointTiming { endpoint_id: EndpointId, }, SetEndpointTiming { endpoint_id: EndpointId, setting_id: u8, }, GetEndpointTimingDescription { setting_id: u8, }, GetEndpointResponders { endpoint_id: EndpointId, }, GetEndpointResponderListChange { endpoint_id: EndpointId, }, GetBindingControlFields { endpoint_id: EndpointId, uid: DeviceUID, }, GetBackgroundQueuedStatusPolicy, SetBackgroundQueuedStatusPolicy { policy_id: u8, }, GetBackgroundQueuedStatusPolicyDescription { policy_id: u8, }, GetSearchDomain, SetSearchDomain(String), GetComponentScope { scope_slot: u16, }, SetComponentScope { scope_slot: u16, scope_string: String, static_config_type: StaticConfigType, static_broker_ipv4_address: Ipv4Address, static_broker_ipv6_address: Ipv6Address, static_broker_port: u16, }, GetTcpCommsStatus, SetTcpCommsStatus { scope_string: String, }, GetBrokerStatus, SetBrokerStatus { broker_state: BrokerState, }, ManufacturerSpecific { command_class: CommandClass, parameter_id: u16, parameter_data: Vec<u8>, }, Unsupported { command_class: CommandClass, parameter_id: u16, parameter_data: Vec<u8>, },
}

Variants§

§

DiscMute

§

DiscUnMute

§

DiscUniqueBranch

Fields

§lower_bound_uid: DeviceUID
§upper_bound_uid: DeviceUID
§

GetCommsStatus

§

SetCommsStatus

§

GetQueuedMessage

Fields

§status_type: StatusType
§

GetStatusMessages

Fields

§status_type: StatusType
§

GetStatusIdDescription

Fields

§status_id: u16
§

SetClearStatusId

§

GetSubDeviceIdStatusReportThreshold

§

SetSubDeviceIdStatusReportThreshold

Fields

§status_type: StatusType
§

GetSupportedParameters

§

GetParameterDescription

Fields

§parameter_id: u16
§

GetDeviceInfo

§

GetProductDetailIdList

§

GetDeviceModelDescription

§

GetManufacturerLabel

§

GetDeviceLabel

§

SetDeviceLabel

Fields

§device_label: String
§

GetFactoryDefaults

§

SetFactoryDefaults

§

GetLanguageCapabilities

§

GetLanguage

§

SetLanguage

Fields

§language: String
§

GetSoftwareVersionLabel

§

GetBootSoftwareVersionId

§

GetBootSoftwareVersionLabel

§

GetDmxPersonality

§

SetDmxPersonality

Fields

§personality_id: u8
§

GetDmxPersonalityDescription

Fields

§personality: u8
§

GetDmxStartAddress

§

SetDmxStartAddress

Fields

§dmx_start_address: u16
§

GetSlotInfo

§

GetSlotDescription

Fields

§slot_id: u16
§

GetDefaultSlotValue

§

GetSensorDefinition

Fields

§sensor_id: u8
§

GetSensorValue

Fields

§sensor_id: u8
§

SetSensorValue

Fields

§sensor_id: u8
§

SetRecordSensors

Fields

§sensor_id: u8
§

GetDeviceHours

§

SetDeviceHours

Fields

§device_hours: u32
§

GetLampHours

§

SetLampHours

Fields

§lamp_hours: u32
§

GetLampStrikes

§

SetLampStrikes

Fields

§lamp_strikes: u32
§

GetLampState

§

SetLampState

Fields

§lamp_state: LampState
§

GetLampOnMode

§

SetLampOnMode

Fields

§lamp_on_mode: LampOnMode
§

GetDevicePowerCycles

§

SetDevicePowerCycles

Fields

§device_power_cycles: u32
§

GetDisplayInvert

§

SetDisplayInvert

Fields

§display_invert: DisplayInvertMode
§

GetDisplayLevel

§

SetDisplayLevel

Fields

§display_level: u8
§

GetPanInvert

§

SetPanInvert

Fields

§pan_invert: bool
§

GetTiltInvert

§

SetTiltInvert

Fields

§tilt_invert: bool
§

GetPanTiltSwap

§

SetPanTiltSwap

Fields

§pan_tilt_swap: bool
§

GetRealTimeClock

§

SetRealTimeClock

Fields

§year: u16
§month: u8
§day: u8
§hour: u8
§minute: u8
§second: u8
§

GetIdentifyDevice

§

SetIdentifyDevice

Fields

§identify: bool
§

SetResetDevice

Fields

§reset_device: ResetDeviceMode
§

GetPowerState

§

SetPowerState

Fields

§power_state: PowerState
§

GetPerformSelfTest

§

SetPerformSelfTest

Fields

§self_test_id: SelfTest
§

SetCapturePreset

Fields

§scene_id: u16
§fade_times: Option<FadeTimes>
§

GetSelfTestDescription

Fields

§self_test_id: SelfTest
§

GetPresetPlayback

§

SetPresetPlayback

Fields

§level: u8
§

GetDmxBlockAddress

§

SetDmxBlockAddress

Fields

§dmx_block_address: u16
§

GetDmxFailMode

§

SetDmxFailMode

Fields

§loss_of_signal_delay_time: TimeMode
§hold_time: TimeMode
§level: u8
§

GetDmxStartupMode

§

SetDmxStartupMode

Fields

§startup_delay: TimeMode
§hold_time: TimeMode
§level: u8
§

GetDimmerInfo

§

GetMinimumLevel

§

SetMinimumLevel

Fields

§minimum_level_increasing: u16
§minimum_level_decreasing: u16
§on_below_minimum: bool
§

GetMaximumLevel

§

SetMaximumLevel

Fields

§maximum_level: u16
§

GetCurve

§

SetCurve

Fields

§curve_id: u8
§

GetCurveDescription

Fields

§curve_id: u8
§

GetOutputResponseTime

§

SetOutputResponseTime

Fields

§output_response_time_id: u8
§

GetOutputResponseTimeDescription

Fields

§output_response_time_id: u8
§

GetModulationFrequency

§

SetModulationFrequency

Fields

§modulation_frequency_id: u8
§

GetModulationFrequencyDescription

Fields

§modulation_frequency_id: u8
§

GetPowerOnSelfTest

§

SetPowerOnSelfTest

Fields

§self_test_id: SelfTest
§

GetLockState

§

SetLockState

Fields

§pin_code: PinCode
§lock_state: bool
§

GetLockStateDescription

§

GetLockPin

§

SetLockPin

Fields

§new_pin_code: PinCode
§current_pin_code: PinCode
§

GetBurnIn

§

SetBurnIn

Fields

§hours: u8
§

GetIdentifyMode

§

SetIdentifyMode

Fields

§identify_mode: u8
§

GetPresetInfo

§

GetPresetStatus

Fields

§scene_id: u16
§

GetPresetMergeMode

§

SetPresetMergeMode

Fields

§merge_mode: MergeMode
§

SetPresetStatus

Fields

§scene_id: u16
§up_fade_time: u16
§down_fade_time: u16
§wait_time: u16
§clear_preset: bool
§

GetListInterfaces

§

GetInterfaceLabel

Fields

§interface_id: u32
§

GetInterfaceHardwareAddressType1

Fields

§interface_id: u32
§

GetIpV4DhcpMode

Fields

§interface_id: u32
§

SetIpV4DhcpMode

Fields

§interface_id: u32
§dhcp_mode: bool
§

GetIpV4ZeroConfMode

Fields

§interface_id: u32
§

SetIpV4ZeroConfMode

Fields

§interface_id: u32
§zero_conf_mode: bool
§

GetIpV4CurrentAddress

Fields

§interface_id: u32
§

GetIpV4StaticAddress

Fields

§interface_id: u32
§

SetIpV4StaticAddress

Fields

§interface_id: u32
§address: Ipv4Address
§netmask: u8
§

SetInterfaceApplyConfiguration

Fields

§interface_id: u32
§

SetInterfaceRenewDhcp

Fields

§interface_id: u32
§

SetInterfaceReleaseDhcp

Fields

§interface_id: u32
§

GetIpV4DefaultRoute

§

SetIpV4DefaultRoute

Fields

§interface_id: u32
§ipv4_default_route: Ipv4Route
§

GetDnsIpV4NameServer

Fields

§name_server_index: u8
§

SetDnsIpV4NameServer

Fields

§name_server_index: u8
§name_server_address: Ipv4Address
§

GetDnsHostName

§

SetDnsHostName

Fields

§host_name: String
§

GetDnsDomainName

§

SetDnsDomainName

Fields

§domain_name: String
§

GetEndpointList

§

GetEndpointListChange

§

GetIdentifyEndpoint

Fields

§endpoint_id: EndpointId
§

SetIdentifyEndpoint

Fields

§endpoint_id: EndpointId
§identify: bool
§

GetEndpointToUniverse

Fields

§endpoint_id: EndpointId
§

SetEndpointToUniverse

Fields

§endpoint_id: EndpointId
§universe: u16
§

GetEndpointMode

Fields

§endpoint_id: EndpointId
§

SetEndpointMode

Fields

§endpoint_id: EndpointId
§

GetEndpointLabel

Fields

§endpoint_id: EndpointId
§

SetEndpointLabel

Fields

§endpoint_id: EndpointId
§label: String
§

GetRdmTrafficEnable

Fields

§endpoint_id: EndpointId
§

SetRdmTrafficEnable

Fields

§endpoint_id: EndpointId
§enable: bool
§

GetDiscoveryState

Fields

§endpoint_id: EndpointId
§

SetDiscoveryState

Fields

§endpoint_id: EndpointId
§

GetBackgroundDiscovery

Fields

§endpoint_id: EndpointId
§

SetBackgroundDiscovery

Fields

§endpoint_id: EndpointId
§enable: bool
§

GetEndpointTiming

Fields

§endpoint_id: EndpointId
§

SetEndpointTiming

Fields

§endpoint_id: EndpointId
§setting_id: u8
§

GetEndpointTimingDescription

Fields

§setting_id: u8
§

GetEndpointResponders

Fields

§endpoint_id: EndpointId
§

GetEndpointResponderListChange

Fields

§endpoint_id: EndpointId
§

GetBindingControlFields

Fields

§endpoint_id: EndpointId
§

GetBackgroundQueuedStatusPolicy

§

SetBackgroundQueuedStatusPolicy

Fields

§policy_id: u8
§

GetBackgroundQueuedStatusPolicyDescription

Fields

§policy_id: u8
§

GetSearchDomain

§

SetSearchDomain(String)

§

GetComponentScope

Fields

§scope_slot: u16
§

SetComponentScope

Fields

§scope_slot: u16
§scope_string: String
§static_config_type: StaticConfigType
§static_broker_ipv4_address: Ipv4Address
§static_broker_ipv6_address: Ipv6Address
§static_broker_port: u16
§

GetTcpCommsStatus

§

SetTcpCommsStatus

Fields

§scope_string: String
§

GetBrokerStatus

§

SetBrokerStatus

Fields

§broker_state: BrokerState
§

ManufacturerSpecific

Fields

§command_class: CommandClass
§parameter_id: u16
§parameter_data: Vec<u8>
§

Unsupported

Fields

§command_class: CommandClass
§parameter_id: u16
§parameter_data: Vec<u8>

Implementations§

Source§

impl RequestParameter

Source

pub fn command_class(&self) -> CommandClass

Source

pub fn parameter_id(&self) -> ParameterId

Source

pub fn encode(&self) -> EncodedParameterData

Source

pub fn decode( command_class: CommandClass, parameter_id: ParameterId, bytes: &[u8], ) -> Result<Self, RdmError>

Trait Implementations§

Source§

impl Clone for RequestParameter

Source§

fn clone(&self) -> RequestParameter

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for RequestParameter

Source§

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

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

impl PartialEq for RequestParameter

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for RequestParameter

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 = 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.