pub struct GlobalConfig { /* private fields */ }
Expand description
Global configuration state for FerricLink
Implementations§
Source§impl GlobalConfig
impl GlobalConfig
Sourcepub fn get_verbose(&self) -> bool
pub fn get_verbose(&self) -> bool
Get the verbose setting
Sourcepub fn set_verbose(&self, value: bool)
pub fn set_verbose(&self, value: bool)
Set the verbose setting
Sourcepub fn get_llm_cache_ref(
&self,
) -> Result<RwLockReadGuard<'_, Option<Box<dyn BaseCache>>>>
pub fn get_llm_cache_ref( &self, ) -> Result<RwLockReadGuard<'_, Option<Box<dyn BaseCache>>>>
Get the LLM cache as a reference (for internal use)
Sourcepub fn has_llm_cache(&self) -> bool
pub fn has_llm_cache(&self) -> bool
Check if LLM cache is set (without taking a lock)
Sourcepub fn clear_llm_cache(&self) -> Result<()>
pub fn clear_llm_cache(&self) -> Result<()>
Clear the LLM cache
Sourcepub fn is_verbose(&self) -> bool
pub fn is_verbose(&self) -> bool
Check if verbose mode is enabled
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GlobalConfig
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnwindSafe for GlobalConfig
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