Closed as not planned
Description
Feature gate: #![feature(unix_set_device)]
This is a tracking issue for #129172
Allows a socket to be bound to a network interface (e.g. eth0).
Public API
fn main() -> std::io::Result<()> {
let sockid: u32 = 32;
let socket = UnixDatagram::unbound()?;
socket.set_device("eth0")?;
let name = socket.device()?;
Ok(())
}