Skip to main content

LazyComponents

Struct LazyComponents 

Source
pub struct LazyComponents { /* private fields */ }
Expand description

Lazy initialization manager for performance optimization

This struct provides lazy initialization of expensive debug components to reduce startup time when debugging features are not immediately needed.

Implementations§

Source§

impl LazyComponents

Source

pub fn new(brp_client: Arc<RwLock<BrpClient>>) -> Self

Create new lazy components manager

Source

pub async fn get_entity_inspector(&self) -> Arc<EntityInspector>

Get or initialize entity inspector

Source

pub async fn get_system_profiler(&self) -> Arc<SystemProfiler>

Get or initialize system profiler

Source

pub async fn get_entity_processor(&self) -> Arc<EntityInspectionProcessor>

Get or initialize entity inspection processor

Source

pub async fn get_profiler_processor(&self) -> Arc<SystemProfilerProcessor>

Get or initialize system profiler processor

Source

pub async fn get_visual_overlay_processor( &self, ) -> Arc<VisualDebugOverlayProcessor>

Get or initialize visual debug overlay processor

Source

pub async fn get_query_builder_processor(&self) -> Arc<QueryBuilderProcessor>

Get or initialize query builder processor

Source

pub async fn get_memory_profiler_processor( &self, ) -> Arc<MemoryProfilerProcessor>

Get or initialize memory profiler processor

Source

pub async fn get_session_processor(&self) -> Arc<SessionProcessor>

Get or initialize session processor

Source

pub async fn get_issue_detector_processor(&self) -> Arc<IssueDetectorProcessor>

Get or initialize issue detector processor

Source

pub async fn get_performance_budget_processor( &self, ) -> Arc<PerformanceBudgetProcessor>

Get or initialize performance budget processor

Source

pub async fn get_debug_command_router(&self) -> Arc<DebugCommandRouter>

Get or initialize debug command router with all processors

Source

pub async fn get_pattern_learning_system(&self) -> Arc<PatternLearningSystem>

Get or initialize pattern learning system

Source

pub async fn get_suggestion_engine(&self) -> Arc<SuggestionEngine>

Get or initialize suggestion engine

Source

pub async fn get_workflow_automation(&self) -> Arc<WorkflowAutomation>

Get or initialize workflow automation

Source

pub async fn get_hot_reload_system(&self) -> Arc<HotReloadSystem>

Get or initialize hot reload system

Source

pub fn is_any_initialized(&self) -> bool

Check if any components have been initialized

Source

pub fn get_initialization_status(&self) -> Value

Get initialization status for debugging

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more