Struct apigpio::Subscription

source ·
pub struct Subscription { /* private fields */ }
Expand description

Subscription to a GPIO pin.

Contains a postage::watch::Receiver<GpioChange>. To unsubscribe from notifications, simply drop the Subscription.

Methods from Deref<Target = Receiver<GpioChange>>

Borrows the value in the channel, blocking the channel while the value is held.

Trait Implementations

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.