[][src]Struct apigpio::Connection

pub struct Connection { /* fields omitted */ }

Methods

impl Connection[src]

pub async fn new_at<'_, A: ToSocketAddrs>(addr: &'_ A) -> Result<Connection>[src]

pub async fn new() -> Result<Connection>[src]

impl Connection[src]

pub async fn notify_subscribe<'_>(
    &'_ self,
    pin: Pin,
    read_initially: bool,
    tick_keepalives: bool
) -> Result<Subscription>
[src]

Methods from Deref<Target = ConnectionCore>

pub async fn cmdr<'_>(&'_ self, cmd: Word, p1: Word, p2: Word) -> Result<Word>[src]

pub async fn cmd0<'_>(&'_ self, cmd: Word, p1: Word, p2: Word) -> Result<()>[src]

pub async fn set_mode<'_>(&'_ self, pin: Pin, mode: GpioMode) -> Result<()>[src]

pub async fn get_mode<'_>(&'_ self, pin: Pin) -> Result<GpioMode>[src]

pub async fn set_pull_up_down<'_>(
    &'_ self,
    pin: Word,
    pud: PullUpDown
) -> Result<()>
[src]

pub async fn gpio_read<'_>(&'_ self, pin: Pin) -> Result<Level>[src]

pub async fn gpio_write<'_>(&'_ self, pin: Pin, level: Level) -> Result<()>[src]

pub async fn wave_clear<'_>(&'_ self) -> Result<()>[src]

pub async fn wave_add_new<'_>(&'_ self) -> Result<WaveId>[src]

pub async fn wave_create<'_>(&'_ self) -> Result<WaveId>[src]

pub async unsafe fn wave_delete<'_>(&'_ self, wave: WaveId) -> Result<()>[src]

pub async fn wave_send_once<'_>(&'_ self, wave: WaveId) -> Result<Word>[src]

pub async fn wave_send_repeat<'_>(&'_ self, wave: WaveId) -> Result<Word>[src]

pub async fn wave_tx_stop<'_>(&'_ self) -> Result<()>[src]

pub async fn wave_tx_at<'_>(&'_ self) -> Result<Option<WaveId>>[src]

pub async fn wave_tx_busy<'_>(&'_ self) -> Result<bool>[src]

pub async fn wave_add_generic<'_, '_>(
    &'_ self,
    pulses: &'_ [Pulse]
) -> Result<Word>
[src]

pub async fn wave_get_micros<'_>(&'_ self) -> Result<Word>[src]

pub async fn wave_get_high_micros<'_>(&'_ self) -> Result<Word>[src]

pub async fn wave_get_max_micros<'_>(&'_ self) -> Result<Word>[src]

pub async unsafe fn wave_send_using_mode<'_>(
    &'_ self,
    wave: WaveId,
    txmode: Word
) -> Result<Word>
[src]

Trait Implementations

impl Clone for Connection[src]

impl Deref for Connection[src]

type Target = ConnectionCore

The resulting type after dereferencing.

Auto Trait Implementations

impl !RefUnwindSafe for Connection

impl Send for Connection

impl Sync for Connection

impl Unpin for Connection

impl !UnwindSafe for Connection

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.