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