Skip to main content

ipc_recv_timeout

Function ipc_recv_timeout 

Source
pub fn ipc_recv_timeout(
    port_handle: usize,
    msg: &mut IpcMessage,
    timeout_ns: usize,
) -> Result<usize, Error>
Expand description

Receive a message from an IPC port, giving up after timeout_ns (0 = wait forever). Returns Error::TimedOut on expiry, and Error::Pipe if the port’s owner is gone.