Struct tinkerforge::nfc_bricklet::P2pStateChangedEvent
source · pub struct P2pStateChangedEvent {
pub state: u8,
pub idle: bool,
}
Fields§
§state: u8
§idle: bool
Trait Implementations§
source§impl Clone for P2pStateChangedEvent
impl Clone for P2pStateChangedEvent
source§fn clone(&self) -> P2pStateChangedEvent
fn clone(&self) -> P2pStateChangedEvent
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 P2pStateChangedEvent
impl Debug for P2pStateChangedEvent
source§impl Default for P2pStateChangedEvent
impl Default for P2pStateChangedEvent
source§fn default() -> P2pStateChangedEvent
fn default() -> P2pStateChangedEvent
Returns the “default value” for a type. Read more
source§impl FromByteSlice for P2pStateChangedEvent
impl FromByteSlice for P2pStateChangedEvent
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]) -> P2pStateChangedEvent
fn from_le_byte_slice(bytes: &[u8]) -> P2pStateChangedEvent
Deserialize the implementing type from a byte slice.
source§impl Hash for P2pStateChangedEvent
impl Hash for P2pStateChangedEvent
source§impl PartialEq for P2pStateChangedEvent
impl PartialEq for P2pStateChangedEvent
source§fn eq(&self, other: &P2pStateChangedEvent) -> bool
fn eq(&self, other: &P2pStateChangedEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for P2pStateChangedEvent
impl Eq for P2pStateChangedEvent
impl StructuralPartialEq for P2pStateChangedEvent
Auto Trait Implementations§
impl RefUnwindSafe for P2pStateChangedEvent
impl Send for P2pStateChangedEvent
impl Sync for P2pStateChangedEvent
impl Unpin for P2pStateChangedEvent
impl UnwindSafe for P2pStateChangedEvent
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