#[non_exhaustive]pub enum DebugResponse {
Show 17 variants
EntityInspection {
entity: EntityData,
metadata: Option<EntityMetadata>,
relationships: Option<EntityRelationships>,
},
BatchEntityInspection {
entities: Vec<EntityInspectionResult>,
requested_count: usize,
found_count: usize,
missing_entities: Vec<EntityId>,
inspection_time_us: u64,
},
SystemProfile(SystemProfile),
ProfilingStarted {
system_name: String,
duration_ms: Option<u64>,
},
ProfileHistory {
system_name: String,
samples: Vec<ProfileSample>,
frame_count: usize,
},
PerformanceAnomalies {
count: usize,
anomalies: Vec<Value>,
},
VisualDebugStatus {
overlay_type: DebugOverlayType,
enabled: bool,
config: Option<Value>,
},
QueryResult {
entities: Vec<EntityData>,
total_count: usize,
execution_time_us: u64,
has_more: bool,
},
MemoryProfile {
total_allocated: usize,
allocations_per_system: HashMap<String, usize>,
top_allocations: Vec<AllocationInfo>,
},
SessionStatus {
session_id: String,
state: SessionState,
command_count: usize,
checkpoints: Vec<CheckpointInfo>,
},
Status {
version: String,
active_sessions: usize,
command_queue_size: usize,
performance_overhead_percent: f32,
},
QueryValidation {
valid: bool,
query: Option<ValidatedQuery>,
errors: Vec<String>,
suggestions: Vec<String>,
},
QueryCost {
cost: QueryCost,
performance_budget_exceeded: bool,
suggestions: Vec<String>,
},
QuerySuggestions {
suggestions: Vec<String>,
query_complexity: u32,
},
QueryExecution {
success: bool,
result: Option<Box<BrpResponse>>,
execution_time_us: u64,
entities_processed: Option<usize>,
},
Success {
message: String,
data: Option<Value>,
},
Custom(Value),
}Expand description
Debug response types
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EntityInspection
Entity inspection result
Fields
§
entity: EntityData§
metadata: Option<EntityMetadata>§
relationships: Option<EntityRelationships>BatchEntityInspection
Batch entity inspection result
Fields
§
entities: Vec<EntityInspectionResult>SystemProfile(SystemProfile)
System profiling result
ProfilingStarted
Profiling started response
ProfileHistory
Profiling history response
PerformanceAnomalies
Performance anomalies response
VisualDebugStatus
Visual debug status
QueryResult
Query execution result
MemoryProfile
Memory profile result
Fields
§
top_allocations: Vec<AllocationInfo>SessionStatus
Session control result
Status
Debug system status
Fields
QueryValidation
Query validation result
QueryCost
Query cost estimation result
QuerySuggestions
Query optimization suggestions
QueryExecution
Query execution result
Fields
§
result: Option<Box<BrpResponse>>Success
Generic success response
Custom(Value)
Custom debug response
Trait Implementations§
Source§impl Clone for DebugResponse
impl Clone for DebugResponse
Source§fn clone(&self) -> DebugResponse
fn clone(&self) -> DebugResponse
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 DebugResponse
impl Debug for DebugResponse
Source§impl<'de> Deserialize<'de> for DebugResponse
impl<'de> Deserialize<'de> for DebugResponse
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
Auto Trait Implementations§
impl Freeze for DebugResponse
impl RefUnwindSafe for DebugResponse
impl Send for DebugResponse
impl Sync for DebugResponse
impl Unpin for DebugResponse
impl UnsafeUnpin for DebugResponse
impl UnwindSafe for DebugResponse
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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