[][src]Enum senstate::WatchType

#[repr(u8)]
pub enum WatchType {
    String,
    Number,
    Json,
    Performance,
}

Different types of data that a watcher can send to Senstate.

Variants

String

String is a simple string of any kind. It can be send with send_string.

Number

Number can be any number like integers and floats. It can be send with send_number.

Json

Json any instance that is serializable to JSON with serde. It can be send with send_json.

Performance

Performance is currently equivalent to Number. It can be send with send_performance.

Trait Implementations

impl Clone for WatchType[src]

impl Copy for WatchType[src]

impl Eq for WatchType[src]

impl PartialEq<WatchType> for WatchType[src]

impl Debug for WatchType[src]

impl Serialize for WatchType[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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