[−][src]Struct apigpio::Connection
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]
&'_ self,
pin: Pin,
read_initially: bool,
tick_keepalives: bool
) -> Result<Subscription>
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]
&'_ self,
pin: Word,
pud: PullUpDown
) -> Result<()>
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]
&'_ self,
pulses: &'_ [Pulse]
) -> Result<Word>
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]
&'_ self,
wave: WaveId,
txmode: Word
) -> Result<Word>
Trait Implementations
impl Clone for Connection
[src]
fn clone(&self) -> Connection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Deref for Connection
[src]
type Target = ConnectionCore
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,