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
UdpFields of Udp
source_port: Option<u16> | |
destination_port: Option<u16> |
TcpFields of Tcp
source_port: Option<u16> | |
destination_port: Option<u16> |
Methods
impl TransportFilter[src]
impl TransportFilterpub fn applies_to_slice(&self, slice: &TransportSlice) -> bool[src]
pub fn applies_to_slice(&self, slice: &TransportSlice) -> boolTrait Implementations
impl Debug for TransportFilter[src]
impl Debug for TransportFilterfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for TransportFilter[src]
impl Clone for TransportFilterfn clone(&self) -> TransportFilter[src]
fn clone(&self) -> TransportFilterReturns 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 TransportFilterimpl PartialEq for TransportFilter[src]
impl PartialEq for TransportFilterfn eq(&self, other: &TransportFilter) -> bool[src]
fn eq(&self, other: &TransportFilter) -> boolThis 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) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for TransportFilter
impl Send for TransportFilterimpl Sync for TransportFilter
impl Sync for TransportFilter