You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/Neothesia/neothesia/src/scene/menu_scene
    
    the code of the file until where you have to start completion: mod iced_menu;

mod icons;

use std::time::Duration;

use iced_menu::AppUi;
use neothesia_core::render::BgPipeline;

use wgpu_jumpstart::{TransformUniform, Uniform};
use winit::event::WindowEvent;

use crate::{
    context::Context,
    iced_utils::{
        iced_conversion,
        iced_state::{self, Program},
    },
    scene::Scene,
};

type Renderer = iced_wgpu::Renderer;

pub struct MenuScene {
    bg_pipeline: BgPipeline,
    iced_state: iced_state::State<AppUi>,

    context: std::task::Context<'static>,
    futures: Vec<futures::future::BoxFuture<'static, iced_menu::Message>>,
}

impl MenuScene {
    pub fn new(ctx: &mut Context) -> Self {
        let menu = AppUi::new(ctx);
        let iced_state =
            iced_state::State::new(m
    
    fn update(&mut self, ctx: &mut Context, delta: Duration) {
        self.bg_pipeline.update_time(&mut ctx.gpu, delta);
        self.iced_state.queue_message(iced_menu::Message::Tick);

        self.futures
            .retain_mut(|f| match f.as_mut().poll(&mut self.context) {
                std::task::Poll::Ready(msg) => {
                    self.iced_state.queue_message(msg);
                    false
                }
                std::task::Poll::Pending => true,
            });

        if !self.iced_state.is_queue_empty() {
            if let Some(command) = self.iced_state.update(ctx) {
                for a in command.actions() {
                    match a {
                        iced_runtime::command::Action::Future(f) => {
                            self.futures.push(f);
                        }
                        _ => {}
                    }
                }
            }
        }
    }