#[repr(C, packed(1))]pub struct IpAddressV6 {
pub address_type: u32,
pub address: IpAddressV6Union,
}Expand description
This structure is used to store information about an IPv6 address for packet filtering purposes.
Rust equivalent for _IP_ADDRESS_V6.
The address_type field indicates whether the address is a subnet (IP_SUBNET_V6_TYPE) or a range (IP_RANGE_V6_TYPE).
The address field contains the specific IPv6 address data, either a subnet or an address range, depending on the address_type.
Fields§
§address_type: u32§address: IpAddressV6UnionImplementations§
Source§impl IpAddressV6
Creates a new IpAddressV6 instance.
impl IpAddressV6
Creates a new IpAddressV6 instance.
§Arguments
address_type- Indicates whether the address is a subnet or a range.address- Contains the specific IPv6 address data, either a subnet or an address range, depending on theaddress_type.
§Returns
- A new
IpAddressV6instance.
pub fn new(address_type: u32, address: IpAddressV6Union) -> Self
Trait Implementations§
Source§impl Clone for IpAddressV6
impl Clone for IpAddressV6
Source§fn clone(&self) -> IpAddressV6
fn clone(&self) -> IpAddressV6
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 IpAddressV6
impl Default for IpAddressV6
Source§fn default() -> IpAddressV6
fn default() -> IpAddressV6
Returns the “default value” for a type. Read more
impl Copy for IpAddressV6
Auto Trait Implementations§
impl Freeze for IpAddressV6
impl RefUnwindSafe for IpAddressV6
impl Send for IpAddressV6
impl Sync for IpAddressV6
impl Unpin for IpAddressV6
impl UnwindSafe for IpAddressV6
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)