#[non_exhaustive]pub enum MulticastInterface {
Any,
V4(Ipv4Addr),
V6Index(u32),
}Available on crate feature
udp only.Expand description
Which interface joins a multicast group.
let any = net_io::MulticastInterface::Any;Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Any
The one the OS picks.
V4(Ipv4Addr)
The IPv4 interface with this address.
V6Index(u32)
The IPv6 interface with this index.
Trait Implementations§
Source§impl Clone for MulticastInterface
impl Clone for MulticastInterface
impl Copy for MulticastInterface
Source§impl Debug for MulticastInterface
impl Debug for MulticastInterface
impl Eq for MulticastInterface
Source§impl PartialEq for MulticastInterface
impl PartialEq for MulticastInterface
impl StructuralPartialEq for MulticastInterface
Auto Trait Implementations§
impl Freeze for MulticastInterface
impl RefUnwindSafe for MulticastInterface
impl Send for MulticastInterface
impl Sync for MulticastInterface
impl Unpin for MulticastInterface
impl UnsafeUnpin for MulticastInterface
impl UnwindSafe for MulticastInterface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more