pub struct EthernetStatus {
pub mac_address: [u8; 6],
pub ip: [u8; 4],
pub subnet_mask: [u8; 4],
pub gateway: [u8; 4],
pub rx_count: u32,
pub tx_count: u32,
pub hostname: String,
}
Fields§
§mac_address: [u8; 6]
§ip: [u8; 4]
§subnet_mask: [u8; 4]
§gateway: [u8; 4]
§rx_count: u32
§tx_count: u32
§hostname: String
Trait Implementations§
Source§impl Clone for EthernetStatus
impl Clone for EthernetStatus
Source§fn clone(&self) -> EthernetStatus
fn clone(&self) -> EthernetStatus
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 EthernetStatus
impl Debug for EthernetStatus
Source§impl Default for EthernetStatus
impl Default for EthernetStatus
Source§fn default() -> EthernetStatus
fn default() -> EthernetStatus
Returns the “default value” for a type. Read more
Source§impl FromByteSlice for EthernetStatus
impl FromByteSlice for EthernetStatus
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]) -> EthernetStatus
fn from_le_byte_slice(bytes: &[u8]) -> EthernetStatus
Deserialize the implementing type from a byte slice.
Source§impl Hash for EthernetStatus
impl Hash for EthernetStatus
Source§impl PartialEq for EthernetStatus
impl PartialEq for EthernetStatus
impl Eq for EthernetStatus
impl StructuralPartialEq for EthernetStatus
Auto Trait Implementations§
impl Freeze for EthernetStatus
impl RefUnwindSafe for EthernetStatus
impl Send for EthernetStatus
impl Sync for EthernetStatus
impl Unpin for EthernetStatus
impl UnwindSafe for EthernetStatus
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