pub trait IpSocketPropertiesMatcher<DeviceClass> {
// Required method
fn matches_ip_socket<S: IpSocketProperties<DeviceClass>>(
&self,
actual: &S,
) -> bool;
}Expand description
Allows code to take an opaque matcher that works on IP sockets without needing to know the type(s) of the underlying matcher(s).
Required Methods§
Sourcefn matches_ip_socket<S: IpSocketProperties<DeviceClass>>(
&self,
actual: &S,
) -> bool
fn matches_ip_socket<S: IpSocketProperties<DeviceClass>>( &self, actual: &S, ) -> bool
Whether the matcher matches actual.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.