Trait PeripheralInput

Source
pub trait PeripheralInput<'d>: Into<InputSignal<'d>> + PeripheralSignal<'d> { }
Available on crate feature unstable only.
Expand description

A signal that can be connected to a peripheral input.

Peripheral drivers are encouraged to accept types that implement this and PeripheralOutput as arguments instead of pin types.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl PeripheralInput<'_> for Level

Source§

impl PeripheralInput<'_> for NoPin

Source§

impl<'d> PeripheralInput<'d> for Flex<'d>

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Source§

impl<'d> PeripheralInput<'d> for Input<'d>

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Source§

impl<'d> PeripheralInput<'d> for InputSignal<'d>

Source§

impl<'d, P> PeripheralInput<'d> for P
where P: InputPin + 'd,