Skip to main content

is_not_found

Function is_not_found 

Source
pub fn is_not_found(status: &Status) -> bool
Expand description

true for the NotFound status: the broker does not know the order or the instrument.

§Examples

use brokapi_tbank::error::is_not_found;
use tonic::Status;

assert!(is_not_found(&Status::not_found("50005")));
assert!(!is_not_found(&Status::unavailable("x")));