pub struct CurrentEvent {
pub sensor: u8,
pub current: i32,
}
Fields§
§sensor: u8
§current: i32
Trait Implementations§
Source§impl Clone for CurrentEvent
impl Clone for CurrentEvent
Source§fn clone(&self) -> CurrentEvent
fn clone(&self) -> CurrentEvent
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 CurrentEvent
impl Debug for CurrentEvent
Source§impl Default for CurrentEvent
impl Default for CurrentEvent
Source§fn default() -> CurrentEvent
fn default() -> CurrentEvent
Returns the “default value” for a type. Read more
Source§impl FromByteSlice for CurrentEvent
impl FromByteSlice for CurrentEvent
Source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
Source§fn from_le_byte_slice(bytes: &[u8]) -> CurrentEvent
fn from_le_byte_slice(bytes: &[u8]) -> CurrentEvent
Deserialize the implementing type from a byte slice.
Source§impl Hash for CurrentEvent
impl Hash for CurrentEvent
Source§impl PartialEq for CurrentEvent
impl PartialEq for CurrentEvent
impl Copy for CurrentEvent
impl Eq for CurrentEvent
impl StructuralPartialEq for CurrentEvent
Auto Trait Implementations§
impl Freeze for CurrentEvent
impl RefUnwindSafe for CurrentEvent
impl Send for CurrentEvent
impl Sync for CurrentEvent
impl Unpin for CurrentEvent
impl UnwindSafe for CurrentEvent
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