Skip to main content

tokio_multicast/
interface.rs

1use std::net::Ipv4Addr;
2
3#[derive(Debug, Clone, PartialEq, Eq, Hash)]
4pub enum Interface {
5    V4(Ipv4Addr),
6    V6(u32),
7    Name(String),
8}
9
10#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
11pub struct InterfaceId(pub u32);