pub async fn get_bootloader_type() -> Result<BootloaderType, Error>