pub struct SessionSystemContextState {
pub pending: Vec<PendingSystemContextAppend>,
pub seen: BTreeMap<String, SeenSystemContextKey>,
}Expand description
Durable control state for runtime system-context append requests.
Fields§
§pending: Vec<PendingSystemContextAppend>§seen: BTreeMap<String, SeenSystemContextKey>Implementations§
Source§impl SessionSystemContextState
impl SessionSystemContextState
Sourcepub fn stage_append(
&mut self,
req: &AppendSystemContextRequest,
accepted_at: SystemTime,
) -> Result<AppendSystemContextStatus, SystemContextStageError>
pub fn stage_append( &mut self, req: &AppendSystemContextRequest, accepted_at: SystemTime, ) -> Result<AppendSystemContextStatus, SystemContextStageError>
Stage an append request, enforcing per-session idempotency.
Sourcepub fn mark_pending_applied(&mut self)
pub fn mark_pending_applied(&mut self)
Mark all currently-pending appends as applied and clear the pending queue.
Trait Implementations§
Source§impl Clone for SessionSystemContextState
impl Clone for SessionSystemContextState
Source§fn clone(&self) -> SessionSystemContextState
fn clone(&self) -> SessionSystemContextState
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionSystemContextState
impl Debug for SessionSystemContextState
Source§impl Default for SessionSystemContextState
impl Default for SessionSystemContextState
Source§fn default() -> SessionSystemContextState
fn default() -> SessionSystemContextState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionSystemContextState
impl<'de> Deserialize<'de> for SessionSystemContextState
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
impl Eq for SessionSystemContextState
impl StructuralPartialEq for SessionSystemContextState
Auto Trait Implementations§
impl Freeze for SessionSystemContextState
impl RefUnwindSafe for SessionSystemContextState
impl Send for SessionSystemContextState
impl Sync for SessionSystemContextState
impl Unpin for SessionSystemContextState
impl UnsafeUnpin for SessionSystemContextState
impl UnwindSafe for SessionSystemContextState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.