pub struct ServerClient { /* private fields */ }Implementations§
Source§impl ServerClient
impl ServerClient
pub fn load() -> Result<Self>
pub fn new(connection: ServerConnection) -> Self
pub fn endpoint(&self) -> &str
pub fn health(&self) -> Result<Value>
pub fn manifest(&self) -> Result<Value>
pub fn list_tools(&self) -> Result<ToolListResponse>
pub fn resolve_project( &self, project_context: &ProjectContext, ) -> Result<ProjectResolutionResponse>
pub fn call_tool( &self, tool_name: &str, arguments: Map<String, Value>, project_context: &ProjectContext, ) -> Result<Value>
Sourcepub fn ingest_telemetry(&self, request: &TelemetryIngestRequest) -> Result<()>
pub fn ingest_telemetry(&self, request: &TelemetryIngestRequest) -> Result<()>
Posts a single tool-call telemetry event to the server for dashboard aggregation. Only token counts and metadata are sent — no raw content.
Sourcepub fn sync_index(&self, request: &IndexSyncPayload) -> Result<Value>
pub fn sync_index(&self, request: &IndexSyncPayload) -> Result<Value>
Syncs the full project code index (files, symbols, call edges) to the server. Returns the number of files, symbols, and edges successfully synced.
Auto Trait Implementations§
impl Freeze for ServerClient
impl RefUnwindSafe for ServerClient
impl Send for ServerClient
impl Sync for ServerClient
impl Unpin for ServerClient
impl UnsafeUnpin for ServerClient
impl UnwindSafe for ServerClient
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