pub struct DebugContextIntegrator { /* private fields */ }Expand description
Debug context integrator
Collects context from multiple subsystems and combines them into a unified DebugContext. All accessors are optional - if not provided, the corresponding context will be empty/default.
Implementations§
Source§impl DebugContextIntegrator
impl DebugContextIntegrator
Sourcepub fn with_reality(self, accessor: Box<dyn RealityAccessor>) -> Self
pub fn with_reality(self, accessor: Box<dyn RealityAccessor>) -> Self
Set reality accessor
Sourcepub fn with_contract(self, accessor: Box<dyn ContractAccessor>) -> Self
pub fn with_contract(self, accessor: Box<dyn ContractAccessor>) -> Self
Set contract accessor
Sourcepub fn with_scenario(self, accessor: Box<dyn ScenarioAccessor>) -> Self
pub fn with_scenario(self, accessor: Box<dyn ScenarioAccessor>) -> Self
Set scenario accessor
Sourcepub fn with_persona(self, accessor: Box<dyn PersonaAccessor>) -> Self
pub fn with_persona(self, accessor: Box<dyn PersonaAccessor>) -> Self
Set persona accessor
Sourcepub fn with_chaos(self, accessor: Box<dyn ChaosAccessor>) -> Self
pub fn with_chaos(self, accessor: Box<dyn ChaosAccessor>) -> Self
Set chaos accessor
Sourcepub async fn collect_unified_context(
&self,
workspace_id: Option<&str>,
) -> Result<DebugContext>
pub async fn collect_unified_context( &self, workspace_id: Option<&str>, ) -> Result<DebugContext>
Collect unified context from all subsystems
This method queries all available subsystems and combines their contexts into a single DebugContext structure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DebugContextIntegrator
impl !RefUnwindSafe for DebugContextIntegrator
impl Send for DebugContextIntegrator
impl Sync for DebugContextIntegrator
impl Unpin for DebugContextIntegrator
impl UnsafeUnpin for DebugContextIntegrator
impl !UnwindSafe for DebugContextIntegrator
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