pub enum EventStreamError {
Lagged(u64),
Decode(DecodeNotificationError),
Closed,
}Expand description
Reports a recoverable or terminal condition while consuming an EventStream.
Variants§
Lagged(u64)
The subscriber fell behind and older events were discarded.
Decode(DecodeNotificationError)
A malformed notification was skipped while the actor remained running.
Closed
The actor closed the event channel.
Trait Implementations§
Source§impl Clone for EventStreamError
impl Clone for EventStreamError
Source§fn clone(&self) -> EventStreamError
fn clone(&self) -> EventStreamError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EventStreamError
Source§impl Debug for EventStreamError
impl Debug for EventStreamError
Source§impl Display for EventStreamError
impl Display for EventStreamError
impl Eq for EventStreamError
Source§impl Error for EventStreamError
impl Error for EventStreamError
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 From<DecodeNotificationError> for EventStreamError
impl From<DecodeNotificationError> for EventStreamError
Source§fn from(source: DecodeNotificationError) -> Self
fn from(source: DecodeNotificationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EventStreamError
impl PartialEq for EventStreamError
impl StructuralPartialEq for EventStreamError
Auto Trait Implementations§
impl Freeze for EventStreamError
impl RefUnwindSafe for EventStreamError
impl Send for EventStreamError
impl Sync for EventStreamError
impl Unpin for EventStreamError
impl UnsafeUnpin for EventStreamError
impl UnwindSafe for EventStreamError
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