Method lrs::socket::Socket::bind_to_device

Binds this socket to a device so that only packets from this device will be accepted.

Syntax

impl Socket {
    fn bind_to_device<D>(&self, device: D) -> Result<(), Errno>
        where D: ToCStr,
}

Arguments

NameDescription
device

The device to which the socket will be bound.

See also