pub struct DaemonClient { /* private fields */ }Expand description
Typed async client for communicating with the vex daemon over TCP.
Implementations§
Source§impl DaemonClient
impl DaemonClient
pub fn new(port: u16) -> Self
pub fn port(&self) -> u16
Sourcepub async fn request(&self, msg: &ClientMessage) -> Result<ServerMessage>
pub async fn request(&self, msg: &ClientMessage) -> Result<ServerMessage>
One-shot request-response: connect, send, read one control frame.
pub async fn shell_create( &self, shell: Option<String>, repo: Option<String>, workstream: Option<String>, ) -> Result<Uuid>
pub async fn shell_list(&self) -> Result<Vec<ShellInfo>>
pub async fn shell_kill(&self, id: Uuid) -> Result<()>
pub async fn agent_list(&self) -> Result<Vec<AgentEntry>>
pub async fn agent_notifications(&self) -> Result<Vec<AgentEntry>>
pub async fn agent_spawn( &self, repo: &str, workstream: Option<&str>, ) -> Result<Uuid>
pub async fn agent_prompt(&self, shell_id: Uuid, text: &str) -> Result<()>
pub async fn repo_list(&self) -> Result<Vec<RepoEntry>>
pub async fn repo_add(&self, name: &str, path: &Path) -> Result<()>
pub async fn workstream_create(&self, repo: &str, name: &str) -> Result<()>
pub async fn workstream_list( &self, repo: Option<&str>, ) -> Result<Vec<WorkstreamInfo>>
Auto Trait Implementations§
impl Freeze for DaemonClient
impl RefUnwindSafe for DaemonClient
impl Send for DaemonClient
impl Sync for DaemonClient
impl Unpin for DaemonClient
impl UnsafeUnpin for DaemonClient
impl UnwindSafe for DaemonClient
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