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