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/poem/poem/src/web/sse
    
    the code of the file until where you have to start completion: //! Server-Sent Events (SSE) types.

mod event;
mod response;

pub use event::Event;
pub use response::SSE;

#[cfg(test)]
mod tests {
    use std::time::Duration;

    use tokio::{io::AsyncReadExt, time::Instant};

    use super::*;
    use crate::IntoResponse;

    #[tokio::test]
    async fn sse() {
        let sse = SSE::new(futures_util::stream::iter(
            vec![1, 2, 3, 4, 5].into_iter().map(|value| {
                if value == 3 {
                    Event::message(value.to_string()).id("a").event_type("tt")
                } else if value == 4 {
                    Event::message(value.to_string())
                        .id("b")
                        .event_type("message")
                } else {
                    Event::message(value.to_string())
                }
        
    
    async fn sse() {
        let sse = SSE::new(futures_util::stream::iter(
            vec![1, 2, 3, 4, 5].into_iter().map(|value| {
                if value == 3 {
                    Event::message(value.to_string()).id("a").event_type("tt")
                } else if value == 4 {
                    Event::message(value.to_string())
                        .id("b")
                        .event_type("message")
                } else {
                    Event::message(value.to_string())
                }
            }),
        ));
        let resp = sse.into_response();

        assert_eq!(resp.content_type(), Some("text/event-stream"));
        let data = resp.into_body().into_string().await.unwrap();
        assert_eq!(
            data,
            r#"data: 1

data: 2

id: a
event: tt
data: 3

id: b
data: 4

data: 5

"#
        );
    }