Function thrift::protocol::verify_expected_sequence_number
source ยท pub fn verify_expected_sequence_number(expected: i32, actual: i32) -> Result<()>
Expand description
Compare the expected message sequence number expected
with the received
message sequence number actual
.
Return ()
if actual == expected
, Err
otherwise.