pub struct RealtimeBackpressureState {
pub capacity: usize,
pub queued_frames: usize,
pub dropped_frames: usize,
pub gated_frames: usize,
pub last_action: Option<RealtimeBackpressureAction>,
pub policy_ref: PolicyRef,
}Expand description
Carries the realtime backpressure 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§
§capacity: usizeTotal subscriber queue capacity. This bounds buffered event frames for a live subscriber.
queued_frames: usizeQueued frames used by this record or request.
dropped_frames: usizeDropped frames used by this record or request.
gated_frames: usizeGated frames used by this record or request.
last_action: Option<RealtimeBackpressureAction>Optional last action value. When absent, callers should use the documented default or skip that optional behavior.
policy_ref: PolicyRefPolicy reference that must be resolved by the host or runtime before execution.
Implementations§
Trait Implementations§
Source§impl Clone for RealtimeBackpressureState
impl Clone for RealtimeBackpressureState
Source§fn clone(&self) -> RealtimeBackpressureState
fn clone(&self) -> RealtimeBackpressureState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RealtimeBackpressureState
impl Debug for RealtimeBackpressureState
Source§impl<'de> Deserialize<'de> for RealtimeBackpressureState
impl<'de> Deserialize<'de> for RealtimeBackpressureState
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RealtimeBackpressureState
impl PartialEq for RealtimeBackpressureState
Source§fn eq(&self, other: &RealtimeBackpressureState) -> bool
fn eq(&self, other: &RealtimeBackpressureState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RealtimeBackpressureState
impl StructuralPartialEq for RealtimeBackpressureState
Auto Trait Implementations§
impl Freeze for RealtimeBackpressureState
impl RefUnwindSafe for RealtimeBackpressureState
impl Send for RealtimeBackpressureState
impl Sync for RealtimeBackpressureState
impl Unpin for RealtimeBackpressureState
impl UnsafeUnpin for RealtimeBackpressureState
impl UnwindSafe for RealtimeBackpressureState
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