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