[][src]Struct embedded_platform::gpio::NoConnect

pub struct NoConnect(_);

A virtual pin that is not actually connected to a physical pin.

The pin will always read a fixed value, can be configured to be in any mode, and will always have writes result in no-ops.

Methods

impl NoConnect[src]

pub fn new(value: bool) -> Self[src]

Creates a new NoConnect that will always read the specified high/low value.

Trait Implementations

impl Clone for NoConnect[src]

impl Copy for NoConnect[src]

impl Debug for NoConnect[src]

impl InputPin for NoConnect[src]

impl IntoFloatingInputPin for NoConnect[src]

type FloatingInputPin = Self

The type of an InputPin that does not employ any pull-up or pull-down resistors.

impl IntoOpenDrainOutputPin for NoConnect[src]

type OpenDrainOutputPin = Self

The type of an OutputPin that is in open drain mode.

impl IntoPullDownInputPin for NoConnect[src]

type PullDownInputPin = Self

The type of an InputPin that has a pull-down resistor attached.

impl IntoPullUpInputPin for NoConnect[src]

type PullUpInputPin = Self

The type of an InputPin that has a pull-up resistor attached.

impl IntoPushPullOutputPin for NoConnect[src]

type PushPullOutputPin = Self

The type of an OutputPin that is in push-pull mode.

impl OutputPin for NoConnect[src]

impl Pin for NoConnect[src]

type Error = Never

The common error type for all pin operations. Read more

Auto Trait Implementations

impl Send for NoConnect

impl Sync for NoConnect

impl Unpin for NoConnect

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<A> InputPinExt for A where
    A: InputPin
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<A> OutputPinExt for A where
    A: OutputPin
[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.