eventsource-stream 0.2.3

A basic building block for building an Eventsource from a Stream of bytes
Documentation
#[cfg(not(feature = "std"))]
use alloc::string::String;

use core::time::Duration;

/// An Event
#[derive(Default, Debug, Eq, PartialEq, Clone)]
pub struct Event {
    /// The event name if given
    pub event: String,
    /// The event data
    pub data: String,
    /// The event id if given
    pub id: String,
    /// Retry duration if given
    pub retry: Option<Duration>,
}