Enum PullSelection
pub enum PullSelection {
Disable,
PullDown,
Keeper,
PullUp,
}Expand description
Pull resistor configuration of a GPIO pin.
Variants§
Disable
No pull resistor.
PullDown
Pull-down resistor.
Keeper
Bus keeper. It keeps the last level that was driven on the pin.
PullUp
Pull-up resistor.
Implementations§
§impl PullSelection
impl PullSelection
Trait Implementations§
§impl Clone for PullSelection
impl Clone for PullSelection
§fn clone(&self) -> PullSelection
fn clone(&self) -> PullSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PullSelection
§impl Debug for PullSelection
impl Debug for PullSelection
impl Eq for PullSelection
§impl PartialEq for PullSelection
impl PartialEq for PullSelection
impl StructuralPartialEq for PullSelection
Auto Trait Implementations§
impl Freeze for PullSelection
impl RefUnwindSafe for PullSelection
impl Send for PullSelection
impl Sync for PullSelection
impl Unpin for PullSelection
impl UnsafeUnpin for PullSelection
impl UnwindSafe for PullSelection
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