#[repr(C, packed(1))]pub struct OBNetIpConfig {
pub dhcp: u16,
pub address: [u8; 4],
pub mask: [u8; 4],
pub gateway: [u8; 4],
}Expand description
@brief IP address configuration for network devices (IPv4)
Fields§
§dhcp: u16@brief DHCP status
@note 0: static IP; 1: DHCP
address: [u8; 4]@brief IP address (IPv4, big endian: 192.168.1.10, address[0] = 192, address[1] = 168, address[2] = 1, address[3] = 10)
mask: [u8; 4]@brief Subnet mask (big endian)
gateway: [u8; 4]@brief Gateway (big endian)
Trait Implementations§
Source§impl Clone for OBNetIpConfig
impl Clone for OBNetIpConfig
Source§fn clone(&self) -> OBNetIpConfig
fn clone(&self) -> OBNetIpConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OBNetIpConfig
Auto Trait Implementations§
impl Freeze for OBNetIpConfig
impl RefUnwindSafe for OBNetIpConfig
impl Send for OBNetIpConfig
impl Sync for OBNetIpConfig
impl Unpin for OBNetIpConfig
impl UnsafeUnpin for OBNetIpConfig
impl UnwindSafe for OBNetIpConfig
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