pub struct NoConnect(/* private fields */);
Expand description
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.
Implementations§
Trait Implementations§
Source§impl IntoFloatingInputPin for NoConnect
impl IntoFloatingInputPin for NoConnect
Source§type FloatingInputPin = NoConnect
type FloatingInputPin = NoConnect
The type of an
InputPin
that does not employ any pull-up or pull-down resistors.Source§fn into_floating_input_pin(self) -> Result<Self::FloatingInputPin, Self::Error>
fn into_floating_input_pin(self) -> Result<Self::FloatingInputPin, Self::Error>
Attempts to re-configure this pin into the new mode.
Source§impl IntoOpenDrainOutputPin for NoConnect
impl IntoOpenDrainOutputPin for NoConnect
Source§type OpenDrainOutputPin = NoConnect
type OpenDrainOutputPin = NoConnect
The type of an
OutputPin
that is in open drain mode.Source§fn into_open_drain_output_pin(
self,
_initial_high: bool,
) -> Result<Self::OpenDrainOutputPin, Self::Error>
fn into_open_drain_output_pin( self, _initial_high: bool, ) -> Result<Self::OpenDrainOutputPin, Self::Error>
Attempts to re-configure this pin into the new mode.
Source§impl IntoPullDownInputPin for NoConnect
impl IntoPullDownInputPin for NoConnect
Source§type PullDownInputPin = NoConnect
type PullDownInputPin = NoConnect
The type of an
InputPin
that has a pull-down resistor attached.Source§fn into_pull_down_input_pin(self) -> Result<Self::PullDownInputPin, Self::Error>
fn into_pull_down_input_pin(self) -> Result<Self::PullDownInputPin, Self::Error>
Attempts to re-configure this pin into the new mode.
Source§impl IntoPullUpInputPin for NoConnect
impl IntoPullUpInputPin for NoConnect
Source§type PullUpInputPin = NoConnect
type PullUpInputPin = NoConnect
The type of an
InputPin
that has a pull-up resistor attached.Source§fn into_pull_up_input_pin(self) -> Result<Self::PullUpInputPin, Self::Error>
fn into_pull_up_input_pin(self) -> Result<Self::PullUpInputPin, Self::Error>
Attempts to re-configure this pin into the new mode.
Source§impl IntoPushPullOutputPin for NoConnect
impl IntoPushPullOutputPin for NoConnect
Source§type PushPullOutputPin = NoConnect
type PushPullOutputPin = NoConnect
The type of an
OutputPin
that is in push-pull mode.Source§fn into_push_pull_output_pin(
self,
_initial_high: bool,
) -> Result<Self::PushPullOutputPin, Self::Error>
fn into_push_pull_output_pin( self, _initial_high: bool, ) -> Result<Self::PushPullOutputPin, Self::Error>
Attempts to re-configure this pin into the new mode.
Source§impl Pin for NoConnect
impl Pin for NoConnect
Source§type Error = Infallible
type Error = Infallible
The common error type for all pin operations. Read more
impl Copy for NoConnect
Auto Trait Implementations§
impl Freeze for NoConnect
impl RefUnwindSafe for NoConnect
impl Send for NoConnect
impl Sync for NoConnect
impl Unpin for NoConnect
impl UnwindSafe for NoConnect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more