pub struct Gate4AgentEngine { /* private fields */ }Expand description
Owns logical session lifecycle state. External work is emitted as effects and can change observed state only after a matching observation.
Implementations§
Source§impl Gate4AgentEngine
impl Gate4AgentEngine
pub fn new() -> Self
pub fn apply_command( &mut self, envelope: CommandEnvelope, ) -> Result<(), ControlError>
pub fn apply_observation(&mut self, envelope: ObservationEnvelope)
pub fn try_apply_observation( &mut self, envelope: ObservationEnvelope, ) -> Result<(), ControlError>
pub fn snapshot(&self) -> ControlSnapshot
pub fn health(&self) -> ControlHealth
pub fn session_snapshot( &self, instance_id: AgentInstanceId, ) -> Option<&SessionSnapshot>
pub fn session_instance_ids(&self) -> impl Iterator<Item = AgentInstanceId> + '_
pub fn record_command_rejection( &mut self, command_id: CommandId, instance_id: AgentInstanceId, message: String, )
pub fn drain_effects(&mut self) -> Vec<EffectEnvelope>
pub fn drain_events(&mut self) -> Vec<ControlEvent>
Trait Implementations§
Source§impl Clone for Gate4AgentEngine
impl Clone for Gate4AgentEngine
Source§impl Debug for Gate4AgentEngine
impl Debug for Gate4AgentEngine
Source§impl Default for Gate4AgentEngine
impl Default for Gate4AgentEngine
impl Eq for Gate4AgentEngine
Source§impl PartialEq for Gate4AgentEngine
impl PartialEq for Gate4AgentEngine
impl StructuralPartialEq for Gate4AgentEngine
Auto Trait Implementations§
impl Freeze for Gate4AgentEngine
impl RefUnwindSafe for Gate4AgentEngine
impl Send for Gate4AgentEngine
impl Sync for Gate4AgentEngine
impl Unpin for Gate4AgentEngine
impl UnsafeUnpin for Gate4AgentEngine
impl UnwindSafe for Gate4AgentEngine
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