wait_for_ipc_response_flatten

Function wait_for_ipc_response_flatten 

Source
pub(crate) fn wait_for_ipc_response_flatten<T>(
    receiver: IpcReceiver<Result<T, ErrorStatus>>,
) -> Result<T, WebDriverError>
where T: for<'de> Deserialize<'de> + Serialize,
Expand description

This function is like wait_for_ipc_response, but works on a channel that returns a Result<T, ErrorStatus>, mapping all errors into WebDriverError.