Searched refs:from_i32 (Results 1 – 9 of 9) sorted by relevance
65 pub fn from_i32(exit_code: i32) -> Result<Self> { in from_i32() method66 FromPrimitive::from_i32(exit_code) in from_i32()
67 A2dpCodecIndex::from_i32(item).unwrap_or_else(|| A2dpCodecIndex::MIN) in from()81 A2dpCodecPriority::from_i32(item).unwrap_or_else(|| A2dpCodecPriority::Default) in from()
100 for i in 0..isize::from_i32(count).unwrap() { in convert_report()
487 } else if let Some(s) = GattStatus::from_i32(item) { in from()1358 BtStatus::from_i32(mutcxxcall!(self, read_phy, client_if, *addr)).unwrap() in read_phy()1454 BtStatus::from_i32(mutcxxcall!(self, server_read_phy, server_if, *addr)).unwrap() in read_phy()
168 let exit_code = ExitCode::from_i32(exit_code.into())?; in odrefresh()
222 ExitCode::from_i32(exit_code.into()) in run_in_vm()
367 BtIoCap::from_i32(req.io_capability).unwrap_or(BtIoCap::Unknown), in set_local_io_caps()
44 BtTransport::from_i32(item).unwrap_or(BtTransport::Auto) in from()119 BtConnectionState::from_i32(item).unwrap_or(fallback) in from()
742 <$ret>::from_i32(val).ok_or_else(|| {