Method lrs::socket::Socket::last_packet

Retrieves the time the last packet was received.

Syntax

impl Socket {
    fn last_packet(&self) -> Result<Time, Errno>
}

Return value

Returns the time the last packet was received.

Remarks

This must only be used if the timestamp option is not set because otherwise the return value will be incorrect.

See also