IpSocketPropertiesMatcher

Trait IpSocketPropertiesMatcher 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl<DeviceClass> IpSocketPropertiesMatcher<DeviceClass> for [IpSocketMatcher<DeviceClass>]

Source§

fn matches_ip_socket<S: IpSocketProperties<DeviceClass>>( &self, actual: &S, ) -> bool

Implementors§

Source§

impl<DeviceClass> IpSocketPropertiesMatcher<DeviceClass> for IpSocketMatcher<DeviceClass>