Lines Matching refs:Error
19 use uwb_core::error::{Error, Result};
45 Err(Error::BadParameters) => StatusCode::UciStatusInvalidParam, in result_to_status_code()
46 Err(Error::MaxSessionsExceeded) => StatusCode::UciStatusMaxSessionsExceeded, in result_to_status_code()
47 Err(Error::CommandRetry) => StatusCode::UciStatusCommandRetry, in result_to_status_code()
48 Err(Error::RegulationUwbOff) => StatusCode::UciStatusRegulationUwbOff, in result_to_status_code()
73 let result: Result<i32> = Err(Error::BadParameters); in test_boolean_result_helper()
84 byte_result_helper::<i8>(Err(Error::BadParameters), "Test"), in test_byte_result_helper()
88 byte_result_helper::<i8>(Err(Error::MaxSessionsExceeded), "Test"), in test_byte_result_helper()
92 byte_result_helper::<i8>(Err(Error::CommandRetry), "Test"), in test_byte_result_helper()
96 byte_result_helper::<i8>(Err(Error::RegulationUwbOff), "Test"), in test_byte_result_helper()
102 byte_result_helper::<i8>(Err(Error::DuplicatedSessionId), "Test"), in test_byte_result_helper()
113 let result: Result<i32> = Err(Error::BadParameters); in test_option_result_helper()