#[repr(C, packed(1))]pub union NetworkLayerFilterUnion {
pub ipv4: IpV4Filter,
pub ipv6: IpV6Filter,
}Expand description
A Rust union that holds either an IpV4Filter or an IpV6Filter.
This union can be used to filter packets at the network layer by specifying the appropriate filter type (IPv4 or IPv6).
Fields§
§ipv4: IpV4Filter§ipv6: IpV6FilterTrait Implementations§
Source§impl Clone for NetworkLayerFilterUnion
impl Clone for NetworkLayerFilterUnion
Source§fn clone(&self) -> NetworkLayerFilterUnion
fn clone(&self) -> NetworkLayerFilterUnion
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 NetworkLayerFilterUnion
impl Default for NetworkLayerFilterUnion
impl Copy for NetworkLayerFilterUnion
Auto Trait Implementations§
impl Freeze for NetworkLayerFilterUnion
impl RefUnwindSafe for NetworkLayerFilterUnion
impl Send for NetworkLayerFilterUnion
impl Sync for NetworkLayerFilterUnion
impl Unpin for NetworkLayerFilterUnion
impl UnwindSafe for NetworkLayerFilterUnion
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)