Struct netstack3_core::filter::PortMatcher
source · pub struct PortMatcher {
pub range: RangeInclusive<u16>,
pub invert: bool,
}
Expand description
A matcher for transport-layer port numbers.
Fields§
§range: RangeInclusive<u16>
The range of port numbers in which the tested port number must fall.
invert: bool
Whether to check for an “inverse” or “negative” match (in which case, if the matcher criteria do not apply, it is considered a match, and vice versa).
Trait Implementations§
source§impl Clone for PortMatcher
impl Clone for PortMatcher
source§fn clone(&self) -> PortMatcher
fn clone(&self) -> PortMatcher
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 Freeze for PortMatcher
impl RefUnwindSafe for PortMatcher
impl Send for PortMatcher
impl Sync for PortMatcher
impl Unpin for PortMatcher
impl UnwindSafe for PortMatcher
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.