pub async fn expect_okfail<T>(
    conn: &mut Framed<T, Codec>
) -> Result<Params, Error>where
    T: AsyncRead + Unpin,
Expand description

Waits for a message and ensures that it’s Ok or Fail. Converts Fail state to an Error::ServerError. Returns a Params buffer containig the Ok parameters on success.