[−][src]Enum plm::Command
A Command (two, actually) is sent in a Message. This type has some commonly used ones, but you can send arbitrary values via Command::Other.
Variants
When sent to a device, turns the device on. When received, it indicates that the device was turned on by manipulation.
When sent to a device, turns the device on faster, e.g. no ramping. When received, it indicates that the device performed a "fast on", usually by a double-tapped switch.
When sent to a device, turns the device off. When received, it indicates that the device was turned off by manipulation.
When sent to a device, turns the device off faster, e.g. no ramping. When received, it indicates that the device performed a "fast off", usually by a double-tapped switch.
Ping the device.
Retrieves the protocol version information.
Cancels linking mode for the device.
Starts linking mode for the device.
Queries the status of the device.
Causes the device to beep once.
Other(u8)
Arbitrary commands not covered by one of the cases above.
Trait Implementations
impl Clone for Command
[src]
impl Copy for Command
[src]
impl Debug for Command
[src]
impl Default for Command
[src]
impl Display for Command
[src]
impl From<Command> for u8
[src]
impl From<u8> for Command
[src]
impl PartialEq<Command> for Command
[src]
impl StructuralPartialEq for Command
[src]
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,