pub struct OutputArgs {
pub speed: Speed,
pub level: PinState,
pub ot: OutputType,
pub pull: Pull,
}Expand description
Output pin arguments.
Argument of Output::new.
Fields§
§speed: SpeedOutput speed.
level: PinStateInitial output level.
ot: OutputTypeOutput type.
pull: PullIO pull configuration.
This is only used if the output type is OutputType::OpenDrain.
Implementations§
Trait Implementations§
Source§impl Clone for OutputArgs
impl Clone for OutputArgs
Source§fn clone(&self) -> OutputArgs
fn clone(&self) -> OutputArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputArgs
impl Debug for OutputArgs
Source§impl Default for OutputArgs
impl Default for OutputArgs
Source§impl PartialEq for OutputArgs
impl PartialEq for OutputArgs
impl Copy for OutputArgs
impl Eq for OutputArgs
impl StructuralPartialEq for OutputArgs
Auto Trait Implementations§
impl Freeze for OutputArgs
impl RefUnwindSafe for OutputArgs
impl Send for OutputArgs
impl Sync for OutputArgs
impl Unpin for OutputArgs
impl UnwindSafe for OutputArgs
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