                portal_id: self.portal_id,
                input,
            };

            self.events.borrow_mut().push_back(event);
            Ok(())
        }
    }
}

#[cfg(target_os = "rust_os")]