pub struct CommandClient { /* private fields */ }Expand description
Sync wrapper around AsyncCommandClient for scripts.
Implementations§
Source§impl CommandClient
impl CommandClient
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Override timeout.
Sourcepub fn job_create(
&self,
goal: &str,
workspace: Option<&str>,
) -> Result<Map<String, Value>>
pub fn job_create( &self, goal: &str, workspace: Option<&str>, ) -> Result<Map<String, Value>>
job_create.
Sourcepub fn job_guidance(
&self,
job_id: &str,
content: &str,
goal_id: Option<&str>,
) -> Result<Map<String, Value>>
pub fn job_guidance( &self, job_id: &str, content: &str, goal_id: Option<&str>, ) -> Result<Map<String, Value>>
job_guidance.
Sourcepub fn autopilot_submit(
&self,
description: &str,
priority: i32,
workspace: Option<&str>,
) -> Result<Map<String, Value>>
pub fn autopilot_submit( &self, description: &str, priority: i32, workspace: Option<&str>, ) -> Result<Map<String, Value>>
autopilot_submit.
Sourcepub fn autopilot_get_goal(&self, goal_id: &str) -> Result<Map<String, Value>>
pub fn autopilot_get_goal(&self, goal_id: &str) -> Result<Map<String, Value>>
autopilot_get_goal.
Sourcepub fn autopilot_cancel_goal(&self, goal_id: &str) -> Result<Map<String, Value>>
pub fn autopilot_cancel_goal(&self, goal_id: &str) -> Result<Map<String, Value>>
autopilot_cancel_goal.
Trait Implementations§
Source§impl Clone for CommandClient
impl Clone for CommandClient
Source§fn clone(&self) -> CommandClient
fn clone(&self) -> CommandClient
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 CommandClient
impl RefUnwindSafe for CommandClient
impl Send for CommandClient
impl Sync for CommandClient
impl Unpin for CommandClient
impl UnsafeUnpin for CommandClient
impl UnwindSafe for CommandClient
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