pub struct Parameters {
    pub address: u16,
    pub channel: u8,
    pub uart_parity: Parity,
    pub uart_rate: BaudRate,
    pub air_rate: AirBaudRate,
    pub transmission_mode: TransmissionMode,
    pub io_drive_mode: IoDriveMode,
    pub wakeup_time: WakeupTime,
    pub fec: ForwardErrorCorrectionMode,
    pub transmission_power: TransmissionPower,
}

Fields

address: u16channel: u8uart_parity: Parityuart_rate: BaudRateair_rate: AirBaudRatetransmission_mode: TransmissionModeio_drive_mode: IoDriveModewakeup_time: WakeupTimefec: ForwardErrorCorrectionModetransmission_power: TransmissionPower

Implementations

Create a builder for building Parameters. On the builder, call .address(...), .channel(...), .uart_parity(...)(optional), .uart_rate(...)(optional), .air_rate(...)(optional), .transmission_mode(...)(optional), .io_drive_mode(...)(optional), .wakeup_time(...)(optional), .fec(...)(optional), .transmission_power(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of Parameters.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.