pub struct AsyncCommandClient { /* private fields */ }Expand description
Async one-shot RPC client (connect → RPC → close).
Implementations§
Source§impl AsyncCommandClient
impl AsyncCommandClient
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Override timeout.
Sourcepub async fn request(
&self,
method: &str,
params: Map<String, Value>,
) -> Result<Map<String, Value>>
pub async fn request( &self, method: &str, params: Map<String, Value>, ) -> Result<Map<String, Value>>
Generic request.
Sourcepub async fn job_create(
&self,
goal: &str,
workspace: Option<&str>,
) -> Result<Map<String, Value>>
pub async fn job_create( &self, goal: &str, workspace: Option<&str>, ) -> Result<Map<String, Value>>
job_create.
Sourcepub async fn job_guidance(
&self,
job_id: &str,
content: &str,
goal_id: Option<&str>,
) -> Result<Map<String, Value>>
pub async fn job_guidance( &self, job_id: &str, content: &str, goal_id: Option<&str>, ) -> Result<Map<String, Value>>
job_guidance.
Sourcepub async fn autopilot_submit(
&self,
description: &str,
priority: i32,
workspace: Option<&str>,
) -> Result<Map<String, Value>>
pub async fn autopilot_submit( &self, description: &str, priority: i32, workspace: Option<&str>, ) -> Result<Map<String, Value>>
autopilot_submit.
Sourcepub async fn autopilot_get_goal(
&self,
goal_id: &str,
) -> Result<Map<String, Value>>
pub async fn autopilot_get_goal( &self, goal_id: &str, ) -> Result<Map<String, Value>>
autopilot_get_goal.
Sourcepub async fn autopilot_cancel_goal(
&self,
goal_id: &str,
) -> Result<Map<String, Value>>
pub async fn autopilot_cancel_goal( &self, goal_id: &str, ) -> Result<Map<String, Value>>
autopilot_cancel_goal.
Sourcepub async fn autopilot_resume(
&self,
goal_id: &str,
) -> Result<Map<String, Value>>
pub async fn autopilot_resume( &self, goal_id: &str, ) -> Result<Map<String, Value>>
autopilot_resume.
Sourcepub async fn autopilot_get_job(
&self,
job_id: &str,
) -> Result<Map<String, Value>>
pub async fn autopilot_get_job( &self, job_id: &str, ) -> Result<Map<String, Value>>
autopilot_get_job.
Sourcepub async fn cron_add(
&self,
text: &str,
priority: Option<i32>,
) -> Result<Map<String, Value>>
pub async fn cron_add( &self, text: &str, priority: Option<i32>, ) -> Result<Map<String, Value>>
cron_add (normalized to {"job": {...}} when possible).
Trait Implementations§
Source§impl Clone for AsyncCommandClient
impl Clone for AsyncCommandClient
Source§fn clone(&self) -> AsyncCommandClient
fn clone(&self) -> AsyncCommandClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AsyncCommandClient
impl RefUnwindSafe for AsyncCommandClient
impl Send for AsyncCommandClient
impl Sync for AsyncCommandClient
impl Unpin for AsyncCommandClient
impl UnsafeUnpin for AsyncCommandClient
impl UnwindSafe for AsyncCommandClient
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