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,
rail_id: &str,
workspace: Option<&str>,
) -> Result<Map<String, Value>>
pub async fn job_create( &self, goal: &str, rail_id: &str, workspace: Option<&str>, ) -> Result<Map<String, Value>>
job_create. rail_id is required (loop-native submission path).
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 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
Auto Trait Implementations§
impl Forget for AsyncCommandClient
impl Freeze for AsyncCommandClient
impl Move for AsyncCommandClient
impl RefUnwindSafe for AsyncCommandClient
impl Send for AsyncCommandClientwhere
RawVecInner: Send,
impl Sync for AsyncCommandClientwhere
RawVecInner: Sync,
impl Unpin for AsyncCommandClient
impl UnsafeUnpin for AsyncCommandClient
impl UnwindSafe for AsyncCommandClientwhere
RawVecInner: UnwindSafe,
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