#[non_exhaustive]
pub enum GpioMode {
GpioModeInput,
GpioModeOutputPushPull,
GpioModeOutputOpenDrain,
GpioModeAltFunctionPushPull,
GpioModeAltFunctionOpenDrain,
GpioModeAnalog,
GpioModeInterruptRise,
GpioModeInterruptFall,
GpioModeInterruptRiseFall,
GpioModeEventRise,
GpioModeEventFall,
GpioModeEventRiseFall,
}
Expand description
Gpio modes
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GpioModeInput
GpioModeOutputPushPull
GpioModeOutputOpenDrain
GpioModeAltFunctionPushPull
GpioModeAltFunctionOpenDrain
GpioModeAnalog
GpioModeInterruptRise
GpioModeInterruptFall
GpioModeInterruptRiseFall
GpioModeEventRise
GpioModeEventFall
GpioModeEventRiseFall
Trait Implementations
impl Eq for GpioMode
impl StructuralEq for GpioMode
impl StructuralPartialEq for GpioMode
Auto Trait Implementations
impl RefUnwindSafe for GpioMode
impl Send for GpioMode
impl Sync for GpioMode
impl Unpin for GpioMode
impl UnwindSafe for GpioMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more