#[repr(C, packed(1))]pub struct IpSubnetV4 {
pub ip: IN_ADDR,
pub ip_mask: IN_ADDR,
}Expand description
This structure is used to represent an IPv4 subnet based on an IP address and a subnet mask.
A Rust equivalent for the _IP_SUBNET_V4 structure.
Fields§
§ip: IN_ADDRThe IPv4 address.
ip_mask: IN_ADDRThe subnet mask.
Implementations§
Trait Implementations§
Source§impl Clone for IpSubnetV4
impl Clone for IpSubnetV4
Source§fn clone(&self) -> IpSubnetV4
fn clone(&self) -> IpSubnetV4
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for IpSubnetV4
impl Default for IpSubnetV4
Source§fn default() -> IpSubnetV4
fn default() -> IpSubnetV4
Returns the “default value” for a type. Read more
impl Copy for IpSubnetV4
Auto Trait Implementations§
impl Freeze for IpSubnetV4
impl RefUnwindSafe for IpSubnetV4
impl Send for IpSubnetV4
impl Sync for IpSubnetV4
impl Unpin for IpSubnetV4
impl UnwindSafe for IpSubnetV4
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)