pub struct ForgeRuntime {
pub config: RuntimeConfig,
}Expand description
Fields§
§config: RuntimeConfigImplementations§
Source§impl ForgeRuntime
impl ForgeRuntime
Sourcepub async fn with_config(
_codebase_path: impl AsRef<Path>,
config: RuntimeConfig,
) -> Result<Self>
pub async fn with_config( _codebase_path: impl AsRef<Path>, config: RuntimeConfig, ) -> Result<Self>
Creates a new runtime with custom configuration.
Sourcepub async fn watch(&self) -> Result<()>
pub async fn watch(&self) -> Result<()>
Starts the file watcher for automatic reindexing.
This will monitor the codebase for changes and trigger reindexing as needed.
Sourcepub async fn clear_cache(&self) -> Result<()>
pub async fn clear_cache(&self) -> Result<()>
Clears all caches.
Sourcepub fn stats(&self) -> RuntimeStats
pub fn stats(&self) -> RuntimeStats
Gets runtime statistics.
Auto Trait Implementations§
impl Freeze for ForgeRuntime
impl RefUnwindSafe for ForgeRuntime
impl Send for ForgeRuntime
impl Sync for ForgeRuntime
impl Unpin for ForgeRuntime
impl UnsafeUnpin for ForgeRuntime
impl UnwindSafe for ForgeRuntime
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