pub struct Statistics {
pub messages_from_brick: u32,
pub messages_from_bricklet: u32,
pub connected_bricklet_device_identifier: u16,
pub connected_bricklet_uid: String,
}
Fields§
§messages_from_brick: u32
§messages_from_bricklet: u32
§connected_bricklet_device_identifier: u16
§connected_bricklet_uid: String
Trait Implementations§
Source§impl Clone for Statistics
impl Clone for Statistics
Source§fn clone(&self) -> Statistics
fn clone(&self) -> Statistics
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 Statistics
impl Debug for Statistics
Source§impl Default for Statistics
impl Default for Statistics
Source§fn default() -> Statistics
fn default() -> Statistics
Returns the “default value” for a type. Read more
Source§impl FromByteSlice for Statistics
impl FromByteSlice for Statistics
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]) -> Statistics
fn from_le_byte_slice(bytes: &[u8]) -> Statistics
Deserialize the implementing type from a byte slice.
Source§impl Hash for Statistics
impl Hash for Statistics
Source§impl PartialEq for Statistics
impl PartialEq for Statistics
impl Eq for Statistics
impl StructuralPartialEq for Statistics
Auto Trait Implementations§
impl Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
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