pub enum RuntimeStreamError {
Publish {
message: String,
},
Lagged {
skipped: u64,
},
Subscribe {
message: String,
},
Closed,
}Expand description
Errors raised by a RuntimeStreamAdapter.
The adapter only models best-effort live fanout, so failures here are
recoverable: callers are expected to fall back to the event store for
replay and deduplicate by event_id/seq.
Variants§
Publish
A live publish could not be delivered to any live consumer.
Lagged
A subscriber lagged behind the live stream and skipped events.
The adapter surface this as an error so consumers can decide whether to tolerate the gap or reconcile from the event store.
Subscribe
A subscription could not be established.
Closed
The live stream has been closed and will yield no further events.
Trait Implementations§
Source§impl Debug for RuntimeStreamError
impl Debug for RuntimeStreamError
Source§impl Display for RuntimeStreamError
impl Display for RuntimeStreamError
Source§impl Error for RuntimeStreamError
impl Error for RuntimeStreamError
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()
Source§impl From<RuntimeStreamError> for RuntimeSubscriptionError
impl From<RuntimeStreamError> for RuntimeSubscriptionError
Source§fn from(source: RuntimeStreamError) -> Self
fn from(source: RuntimeStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuntimeStreamError
impl RefUnwindSafe for RuntimeStreamError
impl Send for RuntimeStreamError
impl Sync for RuntimeStreamError
impl Unpin for RuntimeStreamError
impl UnsafeUnpin for RuntimeStreamError
impl UnwindSafe for RuntimeStreamError
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