Trait ToRouteKeyForUdp

Source
pub trait ToRouteKeyForUdp<T> {
    // Required method
    fn route_key(
        socket_manager: &UdpSocketManager,
        dest: Self,
    ) -> Result<RouteKey>;
}

Required Methods§

Source

fn route_key(socket_manager: &UdpSocketManager, dest: Self) -> Result<RouteKey>

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<S: Into<SocketAddr>> ToRouteKeyForUdp<usize> for (usize, S)

Source§

fn route_key(socket_manager: &UdpSocketManager, dest: Self) -> Result<RouteKey>

Implementors§