pub trait UdpSocketProperties {
// Required methods
fn src_port_matches(&self, matcher: &PortMatcher) -> bool;
fn dst_port_matches(&self, matcher: &PortMatcher) -> bool;
fn state_matches(&self, matcher: &UdpStateMatcher) -> bool;
}
Expand description
Allows code to match on properties of a UDP socket without Netstack3 Core having to specifically expose that state.
Required Methods§
Sourcefn src_port_matches(&self, matcher: &PortMatcher) -> bool
fn src_port_matches(&self, matcher: &PortMatcher) -> bool
Returns whether the socket’s source port is matched by the matcher.
Sourcefn dst_port_matches(&self, matcher: &PortMatcher) -> bool
fn dst_port_matches(&self, matcher: &PortMatcher) -> bool
Returns whether the socket’s destination port is matched by the matcher.
Sourcefn state_matches(&self, matcher: &UdpStateMatcher) -> bool
fn state_matches(&self, matcher: &UdpStateMatcher) -> bool
Returns whether the socket’s UDP state is matched by the matcher.