pub struct MonitoringEvent {
pub signal_index: u8,
pub edge: Edge,
pub timestamp: u64,
}
Expand description
Represents an edge detected on the GPIO pin.
Fields§
§signal_index: u8
Identification of the signal that had an event, in the form of an index into the array
originally passed to monitoring_read()
.
edge: Edge
Rising or falling edge
timestamp: u64
Timestamp of the edge, resolution and epoch is transport-specific, more information in
ClockNature
.
Trait Implementations§
Source§impl Clone for MonitoringEvent
impl Clone for MonitoringEvent
Source§fn clone(&self) -> MonitoringEvent
fn clone(&self) -> MonitoringEvent
Returns a copy 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 MonitoringEvent
impl Debug for MonitoringEvent
Source§impl<'de> Deserialize<'de> for MonitoringEvent
impl<'de> Deserialize<'de> for MonitoringEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MonitoringEvent
impl Serialize for MonitoringEvent
impl Copy for MonitoringEvent
Auto Trait Implementations§
impl Freeze for MonitoringEvent
impl RefUnwindSafe for MonitoringEvent
impl Send for MonitoringEvent
impl Sync for MonitoringEvent
impl Unpin for MonitoringEvent
impl UnwindSafe for MonitoringEvent
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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