pub struct SpecManager { /* private fields */ }Expand description
Central coordinator for spec operations and lifecycle management
Implementations§
Source§impl SpecManager
impl SpecManager
Sourcepub fn discover_specs(&mut self, path: &Path) -> Result<Vec<Spec>, SpecError>
pub fn discover_specs(&mut self, path: &Path) -> Result<Vec<Spec>, SpecError>
Discover specs in a directory recursively
Searches for YAML and Markdown spec files in the given directory and all subdirectories. Supports nested spec discovery (project > feature > task hierarchy).
§Arguments
path- Root directory to search for specs
§Returns
A vector of discovered specs, or an error if discovery fails
Sourcepub fn invalidate_cache(&mut self, path: &Path)
pub fn invalidate_cache(&mut self, path: &Path)
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear all cached specs
Sourcepub fn cache_size(&self) -> usize
pub fn cache_size(&self) -> usize
Get the number of cached specs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpecManager
impl RefUnwindSafe for SpecManager
impl Send for SpecManager
impl Sync for SpecManager
impl Unpin for SpecManager
impl UnwindSafe for SpecManager
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