pub struct Connection { /* private fields */ }Expand description
An established Unix domain socket connection to a walrus daemon.
Not Clone — one connection per session. Use WalrusClient::connect
to create a connection.
Implementations§
Trait Implementations§
Source§impl Client for Connection
impl Client for Connection
Source§async fn request(&mut self, msg: ClientMessage) -> Result<ServerMessage>
async fn request(&mut self, msg: ClientMessage) -> Result<ServerMessage>
Send a
ClientMessage and receive a single ServerMessage.Source§fn request_stream(
&mut self,
msg: ClientMessage,
) -> impl Stream<Item = Result<ServerMessage>> + Send + '_
fn request_stream( &mut self, msg: ClientMessage, ) -> impl Stream<Item = Result<ServerMessage>> + Send + '_
Source§fn send(
&mut self,
req: SendRequest,
) -> impl Future<Output = Result<SendResponse, Error>> + Send
fn send( &mut self, req: SendRequest, ) -> impl Future<Output = Result<SendResponse, Error>> + Send
Send a message to an agent and receive a complete response.
Source§fn stream(
&mut self,
req: StreamRequest,
) -> impl Stream<Item = Result<StreamEvent, Error>> + Send
fn stream( &mut self, req: StreamRequest, ) -> impl Stream<Item = Result<StreamEvent, Error>> + Send
Send a message to an agent and receive a streamed response.
Source§fn clear_session(
&mut self,
req: ClearSessionRequest,
) -> impl Future<Output = Result<SessionCleared, Error>> + Send
fn clear_session( &mut self, req: ClearSessionRequest, ) -> impl Future<Output = Result<SessionCleared, Error>> + Send
Clear the session history for an agent.
Source§fn list_agents(
&mut self,
) -> impl Future<Output = Result<AgentList, Error>> + Send
fn list_agents( &mut self, ) -> impl Future<Output = Result<AgentList, Error>> + Send
List all registered agents.
Source§fn agent_info(
&mut self,
req: AgentInfoRequest,
) -> impl Future<Output = Result<AgentDetail, Error>> + Send
fn agent_info( &mut self, req: AgentInfoRequest, ) -> impl Future<Output = Result<AgentDetail, Error>> + Send
Get detailed info for a specific agent.
Source§fn list_memory(
&mut self,
) -> impl Future<Output = Result<MemoryList, Error>> + Send
fn list_memory( &mut self, ) -> impl Future<Output = Result<MemoryList, Error>> + Send
List all memory entries.
Source§fn get_memory(
&mut self,
req: GetMemoryRequest,
) -> impl Future<Output = Result<MemoryEntry, Error>> + Send
fn get_memory( &mut self, req: GetMemoryRequest, ) -> impl Future<Output = Result<MemoryEntry, Error>> + Send
Get a specific memory entry by key.
Source§fn download(
&mut self,
req: DownloadRequest,
) -> impl Stream<Item = Result<DownloadEvent, Error>> + Send
fn download( &mut self, req: DownloadRequest, ) -> impl Stream<Item = Result<DownloadEvent, Error>> + Send
Download a model’s files with progress reporting.
Source§fn reload_skills(
&mut self,
) -> impl Future<Output = Result<SkillsReloaded, Error>> + Send
fn reload_skills( &mut self, ) -> impl Future<Output = Result<SkillsReloaded, Error>> + Send
Reload skills from disk.
Source§fn mcp_add(
&mut self,
req: McpAddRequest,
) -> impl Future<Output = Result<McpAdded, Error>> + Send
fn mcp_add( &mut self, req: McpAddRequest, ) -> impl Future<Output = Result<McpAdded, Error>> + Send
Add an MCP server.
Source§fn mcp_remove(
&mut self,
req: McpRemoveRequest,
) -> impl Future<Output = Result<McpRemoved, Error>> + Send
fn mcp_remove( &mut self, req: McpRemoveRequest, ) -> impl Future<Output = Result<McpRemoved, Error>> + Send
Remove an MCP server.
Source§fn mcp_reload(
&mut self,
) -> impl Future<Output = Result<McpReloaded, Error>> + Send
fn mcp_reload( &mut self, ) -> impl Future<Output = Result<McpReloaded, Error>> + Send
Reload MCP servers from config.
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
impl UnwindSafe for Connection
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