PollReply

Struct PollReply 

Source
pub struct PollReply<'a> {
Show 29 fields pub ip_address: &'a [u8; 4], pub port: u16, pub firmware_version: u16, pub net_switch: u8, pub sub_switch: u8, pub oem: u16, pub ubea_version: u8, pub status1: u8, pub esta_manufacturer_code: ESTAManufacturerCode, pub short_name: &'a str, pub long_name: &'a str, pub node_report: &'a str, pub num_ports: u16, pub port_types: &'a [u8; 4], pub good_input: &'a [u8; 4], pub good_output_a: &'a [u8; 4], pub swin: &'a [u8; 4], pub swout: &'a [u8; 4], pub acn_priority: u8, pub sw_macro: u8, pub sw_remote: u8, pub style: u8, pub mac_address: &'a [u8; 6], pub bind_ip_address: &'a [u8; 4], pub bind_index: u8, pub status2: u8, pub good_output_b: &'a [u8; 4], pub status3: u8, pub default_responder_uid: &'a [u8; 6],
}

Fields§

§ip_address: &'a [u8; 4]§port: u16§firmware_version: u16§net_switch: u8

Bits 14-8 of the 15 bit Port-Address are encoded into the bottom 7 bits of this field.

§sub_switch: u8

Bits 7-4 of the 15 bit Port-Address are encoded into the bottom 4 bits of this field.

§oem: u16

The Oem word describes the equipment vendor and the feature set available. Bit 15 high indicates extended features available.

§ubea_version: u8

The firmware version of the User Bios Extension Area (UBEA) If the UBEA is not programmed, this field contains zero.

§status1: u8

General Status register containing bit fields as follows: 7-6 Indicator state. 00 Indicator state unknown. 01 Indicators in Locate / Identify Mode. 10 Indicators in Mute Mode. 11 Indicators in Normal Mode. 5-4 Port-Address Programming Authority 00 Port-Address Programming Authority unknown. 01 All Port-Address set by front panel controls. 10 All or part of Port-Address programmed by network or Web browser. 11 Not used. 3 Not implemented, transmit as zero, receivers do not test. 2 0 = Normal firmware boot (from flash). Nodes that do not support dual boot, clear this field to zero. 1 = Booted from ROM. 1 0 = Not capable of Remote Device Management (RDM). 1 = Capable of Remote Device Management (RDM). 0 0 = UBEA not present or corrupt 1 = UBEA present

§esta_manufacturer_code: ESTAManufacturerCode§short_name: &'a str

Note: The spec specifies ASCII characters only

§long_name: &'a str

Note: The spec specifies ASCII characters only

§node_report: &'a str

Note: The spec specifies ASCII characters only

§num_ports: u16§port_types: &'a [u8; 4]§good_input: &'a [u8; 4]§good_output_a: &'a [u8; 4]§swin: &'a [u8; 4]§swout: &'a [u8; 4]§acn_priority: u8§sw_macro: u8§sw_remote: u8§style: u8§mac_address: &'a [u8; 6]§bind_ip_address: &'a [u8; 4]§bind_index: u8§status2: u8§good_output_b: &'a [u8; 4]§status3: u8§default_responder_uid: &'a [u8; 6]

RDMnet & LLRP Default Responder UID

Implementations§

Source§

impl<'a> PollReply<'a>

Source

pub fn serialize(&self, buf: &mut [u8]) -> usize

Serializes the PollReply into the provided buffer.

Note: short name, long name and report will be truncated to 18, 64, and 64 bytes respectively

Trait Implementations§

Source§

impl<'a> Debug for PollReply<'a>

Source§

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

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

impl<'a> Default for PollReply<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for PollReply<'a>

§

impl<'a> RefUnwindSafe for PollReply<'a>

§

impl<'a> Send for PollReply<'a>

§

impl<'a> Sync for PollReply<'a>

§

impl<'a> Unpin for PollReply<'a>

§

impl<'a> UnwindSafe for PollReply<'a>

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