[][src]Enum toio::proto::Motion

pub enum Motion {
    Detect(MotionDetect),
}

Message from the motion sensor.

Variants

Detect(MotionDetect)

The state of the motion sensor.

Implementations

impl Motion[src]

pub fn new_detect(f0: MotionDetect) -> Self[src]

Constructs a new Motion::Detect.

Trait Implementations

impl Clone for Motion[src]

impl Debug for Motion[src]

impl Eq for Motion[src]

impl PartialEq<Motion> for Motion[src]

impl StructuralEq for Motion[src]

impl StructuralPartialEq for Motion[src]

impl<'_> TryFrom<&'_ [u8]> for Motion[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Motion> for Vec<u8>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Motion> for (Uuid, Vec<u8>)[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Vec<u8>> for Motion[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Motion

impl Send for Motion

impl Sync for Motion

impl Unpin for Motion

impl UnwindSafe for Motion

Blanket Implementations

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

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

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

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 = Infallible

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.