pub enum SubscriptionCatchup {
Unknown {
id: String,
},
Known {
id: String,
table: String,
status: String,
cursor: i64,
has_resume_token: bool,
bootstrap_complete: bool,
known_pending_pages: bool,
effective_scopes: Option<Value>,
reason_code: Option<String>,
},
}Expand description
§7.5: the catch-up state of one subscription, read from the persisted
subscription record inside the snapshot transaction (never the mutable
owner cache). Unknown means the client does not currently hold the
subscription (it was never registered, or it was forgotten or removed); it
carries no fabricated table or cursor. A known state carries the persisted
status (active, revoked, or failed), the cursor, and whether a
resume token is held. A reset subscription stays active with
cursor < 0; it is not a fourth status.
Variants§
Unknown
The client does not currently hold this subscription id.
Known
Fields
§
bootstrap_complete: boolTrue only for an active subscription with cursor >= 0 and no
resume token. Never true for a failed, revoked, or reset
subscription.
Trait Implementations§
Source§impl Clone for SubscriptionCatchup
impl Clone for SubscriptionCatchup
Source§impl Debug for SubscriptionCatchup
impl Debug for SubscriptionCatchup
Auto Trait Implementations§
impl Freeze for SubscriptionCatchup
impl RefUnwindSafe for SubscriptionCatchup
impl Send for SubscriptionCatchup
impl Sync for SubscriptionCatchup
impl Unpin for SubscriptionCatchup
impl UnsafeUnpin for SubscriptionCatchup
impl UnwindSafe for SubscriptionCatchup
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