[][src]Trait seeed_erpc::RPC

pub trait RPC {
    type ReturnValue;
    type Error;
    pub fn header(&self, seq: u32) -> Header;
pub fn parse(
        &mut self,
        data: &[u8]
    ) -> Result<Self::ReturnValue, Err<Self::Error>>; pub fn args(&self, _buff: &mut Vec<u8, U64>) { ... } }

Describes an RPC used by the system.

Associated Types

Loading content...

Required methods

pub fn header(&self, seq: u32) -> Header[src]

pub fn parse(
    &mut self,
    data: &[u8]
) -> Result<Self::ReturnValue, Err<Self::Error>>
[src]

Loading content...

Provided methods

pub fn args(&self, _buff: &mut Vec<u8, U64>)[src]

Loading content...

Implementors

impl RPC for GetMacAddress[src]

type ReturnValue = String<U18>

type Error = i32

impl RPC for GetVersion[src]

type ReturnValue = String<U16>

type Error = ()

impl RPC for IsScanning[src]

type ReturnValue = bool

type Error = ()

impl RPC for ScanGetNumAPs[src]

type ReturnValue = u16

type Error = ()

impl RPC for ScanStart[src]

type ReturnValue = i32

type Error = ()

impl<N: ArrayLength<ScanResult>> RPC for ScanGetAP<N>[src]

type ReturnValue = (GenericArray<ScanResult, N>, i32)

type Error = usize

Loading content...