pub struct PinEvent {
pub pin: Pin,
pub state: PinState,
}Expand description
An event representing a logic level change of a physical pin.
To receive PinEvents from a Device, it must be configured with a
FollowerMode of either FollowerMode::MonitorPin or
FollowerMode::MonitorAll.
Fields§
§pin: PinWhich physical pin generated the event.
state: PinStateThe logic level of the pin.
Trait Implementations§
impl Copy for PinEvent
impl Eq for PinEvent
impl StructuralPartialEq for PinEvent
Auto Trait Implementations§
impl Freeze for PinEvent
impl RefUnwindSafe for PinEvent
impl Send for PinEvent
impl Sync for PinEvent
impl Unpin for PinEvent
impl UnsafeUnpin for PinEvent
impl UnwindSafe for PinEvent
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