Enum etherparse::TransportFilter[][src]

pub enum TransportFilter {
    Udp {
        source_port: Option<u16>,
        destination_port: Option<u16>,
    },
    Tcp {
        source_port: Option<u16>,
        destination_port: Option<u16>,
    },
}

Variants

Fields of Udp

Fields of Tcp

Methods

impl TransportFilter
[src]

Trait Implementations

impl Debug for TransportFilter
[src]

Formats the value using the given formatter. Read more

impl Clone for TransportFilter
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for TransportFilter
[src]

impl PartialEq for TransportFilter
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations