pub struct McpService { /* private fields */ }Implementations§
Source§impl McpService
impl McpService
pub fn new(workspace_hint: impl AsRef<Path>) -> Self
pub fn context( &self, file_path: impl AsRef<Path>, cursor_line: Option<usize>, ) -> Result<ContextSnapshot>
pub fn propose(&self, request: ProposalRequest) -> Result<ProposalResult>
pub fn autofill_proposal( &self, file_path: impl AsRef<Path>, cursor_line: Option<usize>, kind: LoreKind, title: Option<String>, body: Option<String>, scope: Option<String>, ) -> Result<ProposalAutofill>
pub fn memory_search( &self, query: impl AsRef<str>, file_path: Option<PathBuf>, cursor_line: Option<usize>, limit: usize, ) -> Result<MemorySearchReport>
pub fn state_transition_preview( &self, atom_id: impl AsRef<str>, target_state: AtomState, ) -> Result<StateTransitionPreview>
pub fn state_snapshot(&self) -> Result<StateSnapshot>
pub fn memory_preflight( &self, operation: impl AsRef<str>, ) -> Result<MemoryPreflightReport>
Trait Implementations§
Source§impl Clone for McpService
impl Clone for McpService
Source§fn clone(&self) -> McpService
fn clone(&self) -> McpService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for McpService
impl RefUnwindSafe for McpService
impl Send for McpService
impl Sync for McpService
impl Unpin for McpService
impl UnsafeUnpin for McpService
impl UnwindSafe for McpService
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