pub struct CoreSystem { /* private fields */ }Expand description
Core functionality with auto-save capabilities. Provides performance optimization and input processing for the Anya system.
Implementations§
Source§impl CoreSystem
impl CoreSystem
Sourcepub fn new(auto_save_frequency: usize) -> Self
pub fn new(auto_save_frequency: usize) -> Self
Creates a new core system with the specified auto-save frequency for each component.
Sourcepub fn performance_optimizer(&self) -> &PerformanceOptimizer
pub fn performance_optimizer(&self) -> &PerformanceOptimizer
Returns a reference to the performance optimizer.
Sourcepub fn process_input(&self, _input: &str) -> Result<(), String>
pub fn process_input(&self, _input: &str) -> Result<(), String>
Processes input across all components. Returns Ok if successful.
Sourcepub fn get_auto_save_stats(&self) -> (usize, usize, usize)
pub fn get_auto_save_stats(&self) -> (usize, usize, usize)
Gets stats about the auto-save state of all components. Returns a tuple of (agent_inputs, hardening_changes, performance_changes).
Auto Trait Implementations§
impl Freeze for CoreSystem
impl RefUnwindSafe for CoreSystem
impl Send for CoreSystem
impl Sync for CoreSystem
impl Unpin for CoreSystem
impl UnwindSafe for CoreSystem
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