pub enum SpawnStreamError {
CursorIncarnationMismatch {
current_daemon_incarnation: String,
body: Box<ErrorBody>,
},
CursorTooOld {
oldest_retained_cursor: SpawnCursor,
body: Box<ErrorBody>,
},
SubscriberLagged {
first_undelivered_cursor: SpawnCursor,
body: Box<ErrorBody>,
},
Call(CallError),
Decode(String),
}Expand description
Why a spawn stream ended with an error, by the daemon’s code where it sent one.
Variants§
CursorIncarnationMismatch
spawn_cursor_incarnation_mismatch: the cursor names another daemon incarnation,
so every event since it is unknowable from this daemon.
CursorTooOld
spawn_cursor_too_old: events after the cursor have left the daemon’s ring.
SubscriberLagged
spawn_subscriber_lagged: the daemon dropped this subscriber for falling behind,
after delivering every event it had queued for it.
Call(CallError)
Any other end: another daemon error (one of the codes above with a detail that does not parse included, so its code is still readable), connection loss, or local backpressure.
Decode(String)
An event body that is not a SpawnEvent.
Implementations§
Trait Implementations§
Source§impl Debug for SpawnStreamError
impl Debug for SpawnStreamError
Source§impl Display for SpawnStreamError
impl Display for SpawnStreamError
Source§impl Error for SpawnStreamError
impl Error for SpawnStreamError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SpawnStreamError
impl !UnwindSafe for SpawnStreamError
impl Forget for SpawnStreamError
impl Freeze for SpawnStreamError
impl Move for SpawnStreamError
impl Send for SpawnStreamError
impl Sync for SpawnStreamError
impl Unpin for SpawnStreamError
impl UnsafeUnpin for SpawnStreamError
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