pub enum Drive {
PushPull,
OpenDrain,
OpenSource,
}
Expand description
The drive policy settings for an output line.
Variants
PushPull
The line is driven when both active and inactive.
This is the default if drive is not specified.
OpenDrain
The line is driven when low and set high impedance when high.
OpenSource
The line is driven when high and set high impedance when low.
Trait Implementations
impl Copy for Drive
impl Eq for Drive
impl StructuralEq for Drive
impl StructuralPartialEq for Drive
Auto Trait Implementations
impl RefUnwindSafe for Drive
impl Send for Drive
impl Sync for Drive
impl Unpin for Drive
impl UnwindSafe for Drive
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