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
Udp
Fields of Udp
source_port: Option<u16> | |
destination_port: Option<u16> |
Tcp
Fields of Tcp
source_port: Option<u16> | |
destination_port: Option<u16> |
Methods
impl TransportFilter
[src]
impl TransportFilter
pub fn applies_to_slice(&self, slice: &TransportSlice) -> bool
[src]
pub fn applies_to_slice(&self, slice: &TransportSlice) -> bool
Trait Implementations
impl Debug for TransportFilter
[src]
impl Debug for TransportFilter
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for TransportFilter
[src]
impl Clone for TransportFilter
fn clone(&self) -> TransportFilter
[src]
fn clone(&self) -> TransportFilter
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for TransportFilter
[src]
impl Eq for TransportFilter
impl PartialEq for TransportFilter
[src]
impl PartialEq for TransportFilter
fn eq(&self, other: &TransportFilter) -> bool
[src]
fn eq(&self, other: &TransportFilter) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TransportFilter) -> bool
[src]
fn ne(&self, other: &TransportFilter) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for TransportFilter
impl Send for TransportFilter
impl Sync for TransportFilter
impl Sync for TransportFilter