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: ui.rs
    path of file: ./repos/espanso/espanso/src/cli/worker/engine/funnel
    
    the code of the file until where you have to start completion: /*
 * This file is part of espanso.
 *
 * Copyright (C) 2019-2021 Federico Terzi
 *
 * espanso is free software: yo
    
  fn receive(&self, op: SelectedOperation) -> Option<Event> {
    let ui_event = op
      .recv(&self.ui_receiver)
      .expect("unable to select data from UISource receiver");

    Some(Event {
      source_id: self.sequencer.next_id(),
      etype: match ui_event {
        UIEvent::TrayIconClick => EventType::TrayIconClicked,
        UIEvent::ContextMenuClick(context_item_id) => {
          EventType::ContextMenuClicked(ContextMenuClickedEvent { context_item_id })
        }
        UIEvent::Heartbeat => EventType::Heartbeat,
      },
    })
  }