pub async fn bytes_to_read<R: Runtime>( _app: AppHandle<R>, state: State<'_, SerialportState>, path: String, ) -> Result<u32, Error>
Get the number of bytes available to read