#[repr(C, packed(1))]pub struct Dhcp4Header {Show 14 fields
pub op_code: u8,
pub hw_type: u8,
pub hw_addr_len: u8,
pub hops: u8,
pub xid: u32,
pub seconds: u16,
pub reserved: u16,
pub client_addr: Ipv4Address,
pub your_addr: Ipv4Address,
pub server_addr: Ipv4Address,
pub gateway_addr: Ipv4Address,
pub client_hw_addr: [u8; 16],
pub server_name: [Char8; 64],
pub boot_file_name: [Char8; 128],
}
Fields§
§op_code: u8
§hw_type: u8
§hw_addr_len: u8
§hops: u8
§xid: u32
§seconds: u16
§reserved: u16
§client_addr: Ipv4Address
§your_addr: Ipv4Address
§server_addr: Ipv4Address
§gateway_addr: Ipv4Address
§client_hw_addr: [u8; 16]
§server_name: [Char8; 64]
§boot_file_name: [Char8; 128]
Trait Implementations§
source§impl Clone for Dhcp4Header
impl Clone for Dhcp4Header
source§fn clone(&self) -> Dhcp4Header
fn clone(&self) -> Dhcp4Header
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 Dhcp4Header
impl Debug for Dhcp4Header
impl Copy for Dhcp4Header
Auto Trait Implementations§
impl Freeze for Dhcp4Header
impl RefUnwindSafe for Dhcp4Header
impl Send for Dhcp4Header
impl Sync for Dhcp4Header
impl Unpin for Dhcp4Header
impl UnwindSafe for Dhcp4Header
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)