sseer 0.3.0

Various helpers for getting Event streams out of your SSE responses
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use core::fmt::{Display, Formatter};

/// Error for a [`reqwest::RequestBuilder`] that cannot be cloned via [`RequestBuilder::try_clone`][reqwest::RequestBuilder::try_clone]
#[derive(Debug, Clone, Copy, Default)]
pub struct CantCloneError;

impl Display for CantCloneError {
    fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
        "cannot clone request".fmt(f)
    }
}

impl core::error::Error for CantCloneError {}