Enum tokio_gpiod::Bias
source · #[repr(u8)]pub enum Bias {
Disable = 0,
PullUp = 1,
PullDown = 2,
}
Expand description
Input bias of a GPIO line
Sometimes GPIO lines shall be pulled to up (power rail) or down (ground) through resistor to avoid floating level on it.
Variants§
Trait Implementations§
source§impl PartialEq for Bias
impl PartialEq for Bias
impl Copy for Bias
impl Eq for Bias
impl StructuralPartialEq for Bias
Auto Trait Implementations§
impl Freeze for Bias
impl RefUnwindSafe for Bias
impl Send for Bias
impl Sync for Bias
impl Unpin for Bias
impl UnwindSafe for Bias
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