#[repr(C, packed(1))]pub struct IpAddressV4 {
pub address_type: u32,
pub address: IpAddressV4Union,
}Expand description
Represents an IPv4 address in a format used by the packet filtering mechanism.
A Rust equivalent for _IP_ADDRESS_V4.
The address_type field indicates whether the address is a subnet or a range.
The address field contains the actual IPv4 address information in a union format.
Fields§
§address_type: u32§address: IpAddressV4UnionImplementations§
Source§impl IpAddressV4
Creates a new IpAddressV4 instance.
impl IpAddressV4
Creates a new IpAddressV4 instance.
§Arguments
address_type- Indicates whether the address is a subnet or a range.address- Contains the actual IPv4 address information in a union format.
§Returns
- A new
IpAddressV4instance.
pub fn new(address_type: u32, address: IpAddressV4Union) -> Self
Trait Implementations§
Source§impl Clone for IpAddressV4
impl Clone for IpAddressV4
Source§fn clone(&self) -> IpAddressV4
fn clone(&self) -> IpAddressV4
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 IpAddressV4
impl Default for IpAddressV4
Source§fn default() -> IpAddressV4
fn default() -> IpAddressV4
Returns the “default value” for a type. Read more
impl Copy for IpAddressV4
Auto Trait Implementations§
impl Freeze for IpAddressV4
impl RefUnwindSafe for IpAddressV4
impl Send for IpAddressV4
impl Sync for IpAddressV4
impl Unpin for IpAddressV4
impl UnwindSafe for IpAddressV4
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)