[][src]Struct seeed_erpc::Header

pub struct Header {
    pub service: Service,
    pub request: u8,
    pub msg_type: MsgType,
    pub sequence: u32,
}

Data precluding an RPC payload, describing which RPC it is and other metadata

Fields

service: Servicerequest: u8msg_type: MsgTypesequence: u32

Implementations

impl Header[src]

pub fn as_bytes(&self) -> [u8; 8][src]

Encodes the RPC into its wire format

pub fn parse<I, E: ParseError<I>>(i: I) -> IResult<I, Self, E> where
    I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength
[src]

Decodes an RPC header from a byte slice or other compatible type

Trait Implementations

impl Clone for Header[src]

impl Debug for Header[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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.