pub enum SseStreamError<T> {
PayloadTooLarge(PayloadTooLargeError),
Inner(T),
}Expand description
Errors that can occur while reading from an SseStream.
Variants§
PayloadTooLarge(PayloadTooLargeError)
A single field (e.g., data or Last-Event-ID) exceeded the configured byte limit.
Inner(T)
An error propagated from the inner TryStream.
Trait Implementations§
Source§impl<T: Clone> Clone for SseStreamError<T>
impl<T: Clone> Clone for SseStreamError<T>
Source§fn clone(&self) -> SseStreamError<T>
fn clone(&self) -> SseStreamError<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for SseStreamError<T>
impl<T: Debug> Debug for SseStreamError<T>
Source§impl<'de, T> Deserialize<'de> for SseStreamError<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for SseStreamError<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Display for SseStreamError<T>where
T: Display,
impl<T> Display for SseStreamError<T>where
T: Display,
Source§impl<T> Error for SseStreamError<T>
impl<T> Error for SseStreamError<T>
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()
Source§impl<T> From<T> for SseStreamError<T>
impl<T> From<T> for SseStreamError<T>
Source§impl<T: PartialEq> PartialEq for SseStreamError<T>
impl<T: PartialEq> PartialEq for SseStreamError<T>
Source§impl<T> Serialize for SseStreamError<T>where
T: Serialize,
impl<T> Serialize for SseStreamError<T>where
T: Serialize,
impl<T: Eq> Eq for SseStreamError<T>
impl<T> StructuralPartialEq for SseStreamError<T>
Auto Trait Implementations§
impl<T> Freeze for SseStreamError<T>where
T: Freeze,
impl<T> RefUnwindSafe for SseStreamError<T>where
T: RefUnwindSafe,
impl<T> Send for SseStreamError<T>where
T: Send,
impl<T> Sync for SseStreamError<T>where
T: Sync,
impl<T> Unpin for SseStreamError<T>where
T: Unpin,
impl<T> UnsafeUnpin for SseStreamError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SseStreamError<T>where
T: UnwindSafe,
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