#[repr(C, packed(1))]pub union TransportLayerFilterUnion {
pub tcp_udp: TcpUdpFilter,
pub icmp: IcmpFilter,
}Expand description
A Rust union that represents a transport layer filter.
Holds either a TcpUdpFilter or an IcmpFilter.
Fields§
§tcp_udp: TcpUdpFiltertcp_udp: A TcpUdpFilter struct that represents a TCP/UDP filter.
icmp: IcmpFiltericmp: An IcmpFilter struct that represents an ICMP filter.
Trait Implementations§
Source§impl Clone for TransportLayerFilterUnion
impl Clone for TransportLayerFilterUnion
Source§fn clone(&self) -> TransportLayerFilterUnion
fn clone(&self) -> TransportLayerFilterUnion
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 TransportLayerFilterUnion
impl Default for TransportLayerFilterUnion
impl Copy for TransportLayerFilterUnion
Auto Trait Implementations§
impl Freeze for TransportLayerFilterUnion
impl RefUnwindSafe for TransportLayerFilterUnion
impl Send for TransportLayerFilterUnion
impl Sync for TransportLayerFilterUnion
impl Unpin for TransportLayerFilterUnion
impl UnwindSafe for TransportLayerFilterUnion
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)