Struct esp32_hal::gpio::AnyPin

source ·
pub struct AnyPin<MODE> { /* private fields */ }

Trait Implementations§

source§

impl<MODE> From<GpioPin<MODE, 0>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 0>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 1>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 1>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 10>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 10>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 11>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 11>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 12>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 12>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 13>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 13>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 14>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 14>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 15>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 15>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 16>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 16>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 17>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 17>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 18>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 18>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 19>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 19>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 2>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 2>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 20>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 20>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 21>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 21>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 22>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 22>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 23>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 23>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 24>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 24>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 25>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 25>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 26>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 26>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 27>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 27>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 3>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 3>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 32>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 32>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 33>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 33>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 34>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 34>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 35>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 35>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 36>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 36>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 37>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 37>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 38>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 38>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 39>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 39>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 4>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 4>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 5>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 5>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 6>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 6>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 7>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 7>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 8>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 8>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> From<GpioPin<MODE, 9>> for AnyPin<MODE>

source§

fn from(value: GpioPin<MODE, 9>) -> AnyPin<MODE>

Converts to this type from the input type.
source§

impl<MODE> TryInto<GpioPin<MODE, 0>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 0>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 0>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 1>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 1>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 1>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 10>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 10>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 10>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 11>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 11>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 11>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 12>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 12>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 12>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 13>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 13>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 13>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 14>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 14>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 14>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 15>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 15>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 15>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 16>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 16>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 16>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 17>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 17>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 17>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 18>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 18>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 18>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 19>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 19>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 19>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 2>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 2>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 2>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 20>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 20>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 20>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 21>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 21>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 21>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 22>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 22>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 22>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 23>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 23>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 23>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 24>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 24>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 24>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 25>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 25>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 25>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 26>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 26>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 26>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 27>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 27>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 27>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 3>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 3>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 3>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 32>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 32>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 32>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 33>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 33>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 33>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 34>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 34>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 34>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 35>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 35>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 35>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 36>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 36>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 36>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 37>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 37>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 37>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 38>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 38>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 38>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 39>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 39>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 39>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 4>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 4>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 4>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 5>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 5>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 5>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 6>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 6>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 6>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 7>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 7>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 7>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 8>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 8>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 8>>>::Error>

Performs the conversion.
source§

impl<MODE> TryInto<GpioPin<MODE, 9>> for AnyPin<MODE>

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<GpioPin<MODE, 9>, <AnyPin<MODE> as TryInto<GpioPin<MODE, 9>>>::Error>

Performs the conversion.
source§

impl<MODE> InputPin for AnyPin<Input<MODE>>

§

type Error = Infallible

Error type
source§

fn is_high(&self) -> Result<bool, <AnyPin<Input<MODE>> as InputPin>::Error>

Is the input pin high?
source§

fn is_low(&self) -> Result<bool, <AnyPin<Input<MODE>> as InputPin>::Error>

Is the input pin low?
source§

impl<MODE> OutputPin for AnyPin<Output<MODE>>

§

type Error = Infallible

Error type
source§

fn set_low(&mut self) -> Result<(), <AnyPin<Output<MODE>> as OutputPin>::Error>

Drives the pin low Read more
source§

fn set_high(&mut self) -> Result<(), <AnyPin<Output<MODE>> as OutputPin>::Error>

Drives the pin high Read more
source§

fn set_state(&mut self, state: PinState) -> Result<(), Self::Error>

Drives the pin high or low depending on the provided value Read more
source§

impl<MODE> StatefulOutputPin for AnyPin<Output<MODE>>

source§

fn is_set_high( &self ) -> Result<bool, <AnyPin<Output<MODE>> as OutputPin>::Error>

Is the pin in drive high mode? Read more
source§

fn is_set_low(&self) -> Result<bool, <AnyPin<Output<MODE>> as OutputPin>::Error>

Is the pin in drive low mode? Read more
source§

impl<MODE> ToggleableOutputPin for AnyPin<Output<MODE>>

§

type Error = Infallible

Error type
source§

fn toggle( &mut self ) -> Result<(), <AnyPin<Output<MODE>> as ToggleableOutputPin>::Error>

Toggle pin output.

Auto Trait Implementations§

§

impl<MODE> RefUnwindSafe for AnyPin<MODE>
where MODE: RefUnwindSafe,

§

impl<MODE> Send for AnyPin<MODE>
where MODE: Send,

§

impl<MODE> Sync for AnyPin<MODE>
where MODE: Sync,

§

impl<MODE> Unpin for AnyPin<MODE>
where MODE: Unpin,

§

impl<MODE> UnwindSafe for AnyPin<MODE>
where MODE: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.