Method lrs::socket::Socket::device

Retrieves the name of the device this socket is bound to, if any.

The buffer in which the device name will be stored.

Syntax

impl Socket {
    fn device(&self, buf: &'a mut [u8]) -> Result<&'a mut CStr, Errno>
}

Arguments

NameDescription
buf

Return value

Returns the device to which the socket is bound.

See also