pub enum SseError {
Utf8,
LineTooLong {
limit: usize,
},
EventTooLarge {
limit: usize,
},
}Expand description
Errors that can occur while parsing an SSE stream.
Variants§
Utf8
Invalid UTF-8 was encountered under SseUtf8Policy::Strict.
LineTooLong
A single line exceeded the configured byte limit.
EventTooLarge
A single event exceeded the configured byte limit.
Trait Implementations§
impl Eq for SseError
Source§impl Error for SseError
impl Error for SseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for SseError
Auto Trait Implementations§
impl Freeze for SseError
impl RefUnwindSafe for SseError
impl Send for SseError
impl Sync for SseError
impl Unpin for SseError
impl UnsafeUnpin for SseError
impl UnwindSafe for SseError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.