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 new() -> DebugContextIntegrator
pub fn new() -> DebugContextIntegrator
Create a new debug context integrator
Sourcepub fn with_reality(
self,
accessor: Box<dyn RealityAccessor>,
) -> DebugContextIntegrator
pub fn with_reality( self, accessor: Box<dyn RealityAccessor>, ) -> DebugContextIntegrator
Set reality accessor
Sourcepub fn with_contract(
self,
accessor: Box<dyn ContractAccessor>,
) -> DebugContextIntegrator
pub fn with_contract( self, accessor: Box<dyn ContractAccessor>, ) -> DebugContextIntegrator
Set contract accessor
Sourcepub fn with_scenario(
self,
accessor: Box<dyn ScenarioAccessor>,
) -> DebugContextIntegrator
pub fn with_scenario( self, accessor: Box<dyn ScenarioAccessor>, ) -> DebugContextIntegrator
Set scenario accessor
Sourcepub fn with_persona(
self,
accessor: Box<dyn PersonaAccessor>,
) -> DebugContextIntegrator
pub fn with_persona( self, accessor: Box<dyn PersonaAccessor>, ) -> DebugContextIntegrator
Set persona accessor
Sourcepub fn with_chaos(
self,
accessor: Box<dyn ChaosAccessor>,
) -> DebugContextIntegrator
pub fn with_chaos( self, accessor: Box<dyn ChaosAccessor>, ) -> DebugContextIntegrator
Set chaos accessor
Sourcepub async fn collect_unified_context(
&self,
workspace_id: Option<&str>,
) -> Result<DebugContext, Error>
pub async fn collect_unified_context( &self, workspace_id: Option<&str>, ) -> Result<DebugContext, Error>
Collect unified context from all subsystems
This method queries all available subsystems and combines their contexts into a single DebugContext structure.
Trait Implementations§
Source§impl Default for DebugContextIntegrator
impl Default for DebugContextIntegrator
Source§fn default() -> DebugContextIntegrator
fn default() -> DebugContextIntegrator
Returns the “default value” for a type. Read more
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more