usestd::string::FromUtf8Error;usethiserror::Error;/// An error that occurred during the processing of a Server-Sent Events (SSE) stream.
#[derive(Debug, Error)]pubenumSseError{/// The event stream contained invalid UTF-8.
#[error("Invalid UTF-8 in event stream: {0}")]
Utf8(#[from] FromUtf8Error),/// The event stream parser encountered an error.
#[error("Failed to parse event stream: {0}")]
Parser(String),}