[][src]Struct tinkerforge::ip_connection::EnumerateResponse

pub struct EnumerateResponse {
    pub uid: String,
    pub connected_uid: String,
    pub position: char,
    pub hardware_version: [u8; 3],
    pub firmware_version: [u8; 3],
    pub device_identifier: u16,
    pub enumeration_type: EnumerationType,
}

Devices send EnumerateResponses when they are connected, disconnected or when an enumeration was triggered by the user using the Enumerate method.

Fields

uid: String

The UID of the device.

connected_uid: String

UID where the device is connected to. For a Bricklet this will be a UID of the Brick where it is connected to. For a Brick it will be the UID of the bottom Master Brick in the stack. For the bottom Master Brick in a stack this will be "0". With this information it is possible to reconstruct the complete network topology.

position: char

For Bricks: '0' - '8' (position in stack). For Bricklets: 'a' - 'd' (position on Brick).

hardware_version: [u8; 3]

Major, minor and release number for hardware version.

firmware_version: [u8; 3]

Major, minor and release number for firmware version.

device_identifier: u16

A number that represents the device. The device identifier numbers can be found here. There are also constants for these numbers named following this pattern:

.DEVICE_IDENTIFIER

For example: MasterBrick.DEVICE_IDENTIFIER or AmbientLightBricklet.DEVICE_IDENTIFIER.

enumeration_type: EnumerationType

Type of enumeration. See EnumerationType

Trait Implementations

impl FromByteSlice for EnumerateResponse[src]

impl Clone for EnumerateResponse[src]

impl Debug for EnumerateResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self