Enum unmp_center_core::Kind[][src]

pub enum Kind {
    GetId,
    Login,
    Heart,
    GetTimestamp,
    SetActual,
    GetActual,
    SubActual,
    SubAllActual,
    NoticeActual,
    SetTarget,
    GetTarget,
    SubTarget,
    SubAllTarget,
    NoticeTarget,
    EnterBind,
    Bind,
    Unbind,
    NoticeBind,
    NoticeUnbind,
    GetOTAInfo,
    EnterOTA,
    ExitOTA,
    GetOTA,
    Unknown,
}

指令类型

Variants

GetId

注册设备ID

Login

设备上线

Heart

心跳

GetTimestamp

获取时间戳

SetActual

设置云端变量实际值

GetActual

读取云端变量实际值

SubActual

订阅云端变量实际值变更通知

SubAllActual

订阅全部云端变量实际值变更通知

NoticeActual

发送云端变量实际值变更通知

SetTarget

设置云端变量目标值

GetTarget

读取云端变量目标值

SubTarget

订阅云端变量目标值变更通知

SubAllTarget

读取全部云端变量目标值

NoticeTarget

发送云端变量目标值变更通知

EnterBind

进入绑定模式

Bind

用户绑定设备

Unbind

用户解绑设备

NoticeBind

发送设备被绑定通知

NoticeUnbind

发送设备被解绑通知

GetOTAInfo

获取软件包最新版本

EnterOTA

进入升级模式

ExitOTA

退出升级模式

GetOTA

获取软件包分片

Unknown

无效状态

Trait Implementations

impl Clone for Kind[src]

impl Copy for Kind[src]

impl Debug for Kind[src]

impl Default for Kind[src]

impl Eq for Kind[src]

impl From<u8> for Kind[src]

impl PartialEq<Kind> for Kind[src]

impl StructuralEq for Kind[src]

impl StructuralPartialEq for Kind[src]

Auto Trait Implementations

impl Send for Kind

impl Sync for Kind

impl Unpin for Kind

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.