Struct netstack3_core::filter::TransportProtocolMatcher
source · pub struct TransportProtocolMatcher<P> {
pub proto: P,
pub src_port: Option<PortMatcher>,
pub dst_port: Option<PortMatcher>,
}
Expand description
A matcher for transport-layer protocol or port numbers.
Fields§
§proto: P
The transport-layer protocol.
src_port: Option<PortMatcher>
If set, the matcher for the source port or identifier of the transport header.
dst_port: Option<PortMatcher>
If set, the matcher for the destination port or identifier of the transport header.
Trait Implementations§
source§impl<P> Clone for TransportProtocolMatcher<P>where
P: Clone,
impl<P> Clone for TransportProtocolMatcher<P>where
P: Clone,
source§fn clone(&self) -> TransportProtocolMatcher<P>
fn clone(&self) -> TransportProtocolMatcher<P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<P> Freeze for TransportProtocolMatcher<P>where
P: Freeze,
impl<P> RefUnwindSafe for TransportProtocolMatcher<P>where
P: RefUnwindSafe,
impl<P> Send for TransportProtocolMatcher<P>where
P: Send,
impl<P> Sync for TransportProtocolMatcher<P>where
P: Sync,
impl<P> Unpin for TransportProtocolMatcher<P>where
P: Unpin,
impl<P> UnwindSafe for TransportProtocolMatcher<P>where
P: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.