Struct unmp_center_core::Data[][src]

pub struct Data { /* fields omitted */ }

数据

Implementations

impl Data[src]

pub fn new(kind: Kind, err: Status) -> Data[src]

pub fn sn(&self) -> u16[src]

pub fn set_sn(&mut self, sn: u16)[src]

pub fn kind(&self) -> Kind[src]

pub fn status(&self) -> Status[src]

pub fn set_status(&mut self, status: Status)[src]

pub fn cmd(&self) -> &Cmd[src]

pub fn set_cmd(&mut self, cmd: Cmd)[src]

pub fn parse(buf: &[u8]) -> Self[src]

pub fn to_buf(&self) -> Vec<u8>[src]

Trait Implementations

impl Debug for Data[src]

Auto Trait Implementations

impl Send for Data

impl Sync for Data

impl Unpin for Data

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, 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.