[][src]Enum remote_hal::common::RequestKind

pub enum RequestKind {
    Ping,
    SpiConnect(SpiConnect),
    SpiTransfer {
        write_data: Data,
    },
    SpiWrite {
        write_data: Data,
    },
    SpiDisconnect,
    PinConnect(PinMode),
    PinSet(Value),
    PinGet,
    PinDisconnect,
    I2cConnect,
    I2cWrite(I2cWrite),
    I2cRead(I2cRead),
    I2cWriteRead(I2cWriteRead),
    I2cDisconnect,
}

Variants

Ping

Send a ping message to the remote server

SpiConnect(SpiConnect)

Connect to the specified SPI device

SpiTransfer

Transfer data using a connected SPI device

Fields of SpiTransfer

write_data: Data

Data to be written in hexidecimal (ie. 0x112233 or [00, 12, 01 a1])

SpiWrite

Write data using a connected SPI device

Fields of SpiWrite

write_data: Data

Data to be written in hexidecimal (ie. 0x112233 or [00, 12, 01 a1])

SpiDisconnect

Disconnect a connected SPI device

PinConnect(PinMode)

Connect to the specified pin

PinSet(Value)

Set the value of the specified pin

PinGet

Fetch the value of the specified pin

PinDisconnect

Disconnect a connected pin

I2cConnect

Connect to the specified I2C device

I2cWrite(I2cWrite)

Write data to the provided address using a connected I2C device

I2cRead(I2cRead)

Read data from the provided address using a connected I2C device

I2cWriteRead(I2cWriteRead)

Write then read data from the provided address using a connected I2C device

I2cDisconnect

Disconnect a connected I2C device

Trait Implementations

impl Clone for RequestKind[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for RequestKind[src]

impl Serialize for RequestKind[src]

impl<'de> Deserialize<'de> for RequestKind[src]

impl StructOpt for RequestKind[src]

fn from_args() -> Self[src]

Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more

fn from_iter<I>(iter: I) -> Self where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

impl Send for RequestKind

impl Sync for RequestKind

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err