Method lrs::msg_queue::MsgQueue::recv_timeout

Receives a message over the message queue with a timeout.

Syntax

impl MsgQueue {
    fn recv_timeout(&self, buf: &'a mut [u8], timeout: Time) -> Result<(&'a mut [u8], u16), Errno>
}

Arguments

NameDescription
buf

A buffer in which the message will be stored.

timeout

Until when this function should block.

Return value

Returns the message and its priority.

Remarks

The timeout argument is absolute. See the example in send_timeout.

See also