Method lrs::socket::Socket::ipv4_mtu

Retrieves the MTU of this socket.

Syntax

impl Socket {
    fn ipv4_mtu(&self) -> Result<usize, Errno>
}

Return value

Returns the MTU of this socket.

Remarks

Only valid for connected sockets.

See also