pub struct FullSub { /* private fields */ }Expand description
Live full-tx subscription. Call FullSub::next in a loop.
Implementations§
Source§impl FullSub
impl FullSub
Sourcepub async fn next(&mut self) -> Result<Option<Frame>>
pub async fn next(&mut self) -> Result<Option<Frame>>
Awaits the next transaction frame. Frame::Unknown message types are
skipped transparently for forward compatibility, and
Frame::Heartbeat frames update FullSub::heartbeat instead of
being returned. Only Frame::Tx is ever handed back here. Returns
Ok(None) at a clean end of stream.
Sourcepub fn heartbeat(&self) -> Option<(u64, u64)>
pub fn heartbeat(&self) -> Option<(u64, u64)>
The most recent heartbeat observed on this stream: (server_ts_ms, highest_seq). highest_seq == NO_SEQ_ASSIGNED means the server has
not assigned this subscriber a transaction yet. None means no
heartbeat has arrived at all yet (a busy stream can go a long time
without one — the server resets its heartbeat timer on every real
send).
Unlike SigFirstSub::gaps, the full-tx wire carries no per-frame
sequence number, so this SDK cannot compute a numeric gap count for
this tier — highest_seq is the raw signal a caller can compare
against its own received-frame count if it wants that.