Enum hm11::command::Command

source ·
pub enum Command<'a> {
Show 16 variants Baud9600, Baud19200, Baud38400, Baud57600, Baud115200, Baud4800, Baud2400, Baud1200, Baud230400, Test, Disconnect, Reset, SetName(&'a str), SystemLedMode(bool), Sleep, Notify(bool),
}

Variants§

§

Baud9600

0 –––– 9600

§

Baud19200

1 –––– 19200

§

Baud38400

2 –––– 38400

§

Baud57600

3 –––– 57600

§

Baud115200

4 –––– 115200

§

Baud4800

5 –––– 4800

§

Baud2400

6 –––– 2400

§

Baud1200

7 –––– 1200

§

Baud230400

8 –––– 230400

§

Test

Test AT Response

§

Disconnect

Disconnect from current bluetooth connection

§

Reset

Restart the module

§

SetName(&'a str)

Discovery name

§

SystemLedMode(bool)

System LED function false: when disconnected alternates output true: when disconncted output is low

§

Sleep

Sleep the module

§

Notify(bool)

Notification information over the uart

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.

Should always be Self
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.