pub struct RealtimeSessionState {
pub session_id: RealtimeSessionId,
pub connection_id: RealtimeConnectionId,
pub provider_route_ref: String,
pub send_cursor: StreamCursor,
pub receive_cursor: StreamCursor,
pub restart_count: u32,
pub backpressure_state: RealtimeBackpressureState,
pub lifecycle_status: RealtimeSessionStatus,
pub policy_refs: Vec<PolicyRef>,
}Expand description
Carries the realtime session state record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§session_id: RealtimeSessionIdStable session id used for typed lineage, lookup, or dedupe.
connection_id: RealtimeConnectionIdStable connection id used for typed lineage, lookup, or dedupe.
provider_route_ref: StringTyped provider route ref reference. Resolving or executing it is a separate policy-gated step.
send_cursor: StreamCursorCursor identifying a replay, export, or subscription position. Use it to resume without widening the original scope.
receive_cursor: StreamCursorCursor identifying a replay, export, or subscription position. Use it to resume without widening the original scope.
restart_count: u32Count of restart items observed or included in this record.
backpressure_state: RealtimeBackpressureStateBackpressure state used by this record or request.
lifecycle_status: RealtimeSessionStatusLifecycle status used by this record or request.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
Trait Implementations§
Source§impl Clone for RealtimeSessionState
impl Clone for RealtimeSessionState
Source§fn clone(&self) -> RealtimeSessionState
fn clone(&self) -> RealtimeSessionState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RealtimeSessionState
impl Debug for RealtimeSessionState
Source§impl<'de> Deserialize<'de> for RealtimeSessionState
impl<'de> Deserialize<'de> for RealtimeSessionState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RealtimeSessionState
impl PartialEq for RealtimeSessionState
Source§fn eq(&self, other: &RealtimeSessionState) -> bool
fn eq(&self, other: &RealtimeSessionState) -> bool
self and other values to be equal, and is used by ==.