pub enum SseError {
TopicLimitReached,
ChannelClosed,
Lagged(u64),
Transport(String),
}Expand description
Errors returned by crate::SseHub, crate::SseSubscription, and crate::SseStream operations.
Variants§
TopicLimitReached
Creating a new topic would exceed SseConfig::max_topics.
ChannelClosed
The underlying topic broadcast channel has closed.
Lagged(u64)
The subscriber lagged behind the broadcast ring by u64 messages.
Transport(String)
Writing an SSE frame to the HTTP response stream failed.
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 Forget for SseError
impl Freeze for SseError
impl Move for SseError
impl RefUnwindSafe for SseError
impl Send for SseErrorwhere
RawVecInner: Send,
impl Sync for SseErrorwhere
RawVecInner: Sync,
impl Unpin for SseError
impl UnsafeUnpin for SseError
impl UnwindSafe for SseErrorwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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.