Method lrs::socket::Socket::set_recv_timeout

Sets the timeout option of receiving operations.

Syntax

impl Socket {
    fn set_recv_timeout(&self, val: Option<Time>) -> Result<(), Errno>
}

Arguments

NameDescription
val

The timeout option of receiving operations.

Remarks

A None argument implies that operations never time-out.

See also