pub struct BrainSession { /* private fields */ }Implementations§
Source§impl BrainSession
impl BrainSession
pub fn open(start: &Path) -> KimetsuResult<Self>
pub fn open_readonly(start: &Path) -> KimetsuResult<Self>
pub fn retrieve_context( &self, stage: &str, query: &str, budget_tokens: u32, ) -> KimetsuResult<ContextBundle>
pub fn repo_root(&self) -> &Path
Sourcepub fn user_conn(&self) -> Option<&Connection>
pub fn user_conn(&self) -> Option<&Connection>
v0.4.1: expose the user-brain connection so callers (e.g.
kimetsu brain status) can report counts/paths without
re-opening the file. Returns None when the user brain is
disabled or unresolvable.
Auto Trait Implementations§
impl !Freeze for BrainSession
impl !RefUnwindSafe for BrainSession
impl Send for BrainSession
impl !Sync for BrainSession
impl Unpin for BrainSession
impl UnsafeUnpin for BrainSession
impl !UnwindSafe for BrainSession
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