pub struct Client { /* private fields */ }Expand description
Long-lived protocol-1 WebSocket client.
Implementations§
Source§impl Client
impl Client
Sourcepub fn with_config(cfg: ClientConfig) -> Self
pub fn with_config(cfg: ClientConfig) -> Self
Create with explicit config.
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Whether the socket is connected.
Sourcepub fn is_connection_alive(&self) -> bool
pub fn is_connection_alive(&self) -> bool
Whether the reader task is alive.
Sourcepub fn is_handshake_complete(&self) -> bool
pub fn is_handshake_complete(&self) -> bool
Whether the protocol-1 handshake has completed.
Sourcepub async fn readiness_state(&self) -> String
pub async fn readiness_state(&self) -> String
Daemon readiness_state from the last connection_ack (empty before handshake).
Sourcepub fn inbound_dropped(&self) -> u64
pub fn inbound_dropped(&self) -> u64
Count of dropped inbound frames under backpressure.
Sourcepub fn set_stream_degraded_callback(
&self,
cb: Option<Arc<dyn Fn(u64, String) + Send + Sync>>,
)
pub fn set_stream_degraded_callback( &self, cb: Option<Arc<dyn Fn(u64, String) + Send + Sync>>, )
Register a hook invoked on the first inbound overflow drop.
Sourcepub fn enable_heartbeat_tracking(&self) -> Arc<HeartbeatTracker> ⓘ
pub fn enable_heartbeat_tracking(&self) -> Arc<HeartbeatTracker> ⓘ
Enable heartbeat tracking with the default 15s alive threshold.
Sourcepub fn enable_heartbeat_tracking_with_threshold(
&self,
threshold: Duration,
) -> Arc<HeartbeatTracker> ⓘ
pub fn enable_heartbeat_tracking_with_threshold( &self, threshold: Duration, ) -> Arc<HeartbeatTracker> ⓘ
Enable heartbeat tracking with a custom alive threshold.
Sourcepub fn disable_heartbeat_tracking(&self)
pub fn disable_heartbeat_tracking(&self)
Disable heartbeat tracking.
Sourcepub fn heartbeat_tracker(&self) -> Option<Arc<HeartbeatTracker>>
pub fn heartbeat_tracker(&self) -> Option<Arc<HeartbeatTracker>>
Current heartbeat tracker, if enabled.
Sourcepub fn is_daemon_alive(&self) -> bool
pub fn is_daemon_alive(&self) -> bool
Whether the tracked daemon is considered alive (true if tracking disabled).
Sourcepub async fn disconnect_cause(&self) -> Option<DisconnectCause>
pub async fn disconnect_cause(&self) -> Option<DisconnectCause>
Disconnect cause if disconnected.
Sourcepub async fn wait_disconnected(&self) -> DisconnectCause
pub async fn wait_disconnected(&self) -> DisconnectCause
Wait until disconnected.
Sourcepub async fn connect(&self) -> Result<()>
pub async fn connect(&self) -> Result<()>
Dial + handshake (connection_init / connection_ack ready).
Sourcepub async fn reconnect(&self) -> Result<()>
pub async fn reconnect(&self) -> Result<()>
Re-dial and re-handshake after a connection drop.
Does not re-establish loop subscriptions; follow with
Self::reattach_and_probe to resume a loop session.
Sourcepub async fn send_envelope(&self, env: Envelope) -> Result<()>
pub async fn send_envelope(&self, env: Envelope) -> Result<()>
Send a raw envelope.
Sourcepub async fn notify(
&self,
method: &str,
params: Map<String, Value>,
) -> Result<()>
pub async fn notify( &self, method: &str, params: Map<String, Value>, ) -> Result<()>
Fire-and-forget notification.
Sourcepub async fn request(
&self,
method: &str,
params: Map<String, Value>,
req_timeout: Duration,
) -> Result<Map<String, Value>>
pub async fn request( &self, method: &str, params: Map<String, Value>, req_timeout: Duration, ) -> Result<Map<String, Value>>
RPC request correlated by id.
Sourcepub async fn request_response(
&self,
payload: Map<String, Value>,
fallback_method: &str,
req_timeout: Duration,
) -> Result<Map<String, Value>>
pub async fn request_response( &self, payload: Map<String, Value>, fallback_method: &str, req_timeout: Duration, ) -> Result<Map<String, Value>>
Request with a payload map that may include a type field as the method name
(Go RequestResponse parity).
Sourcepub async fn subscribe(
&self,
method: &str,
params: Map<String, Value>,
req_timeout: Duration,
) -> Result<String>
pub async fn subscribe( &self, method: &str, params: Map<String, Value>, req_timeout: Duration, ) -> Result<String>
Subscribe; returns subscription id.
Sourcepub async fn unsubscribe(&self, id: &str) -> Result<()>
pub async fn unsubscribe(&self, id: &str) -> Result<()>
Unsubscribe by id.
Sourcepub async fn read_event(&self) -> Result<Option<Value>>
pub async fn read_event(&self) -> Result<Option<Value>>
Read next inbound app event (blocks).
Sourcepub async fn read_event_with_timeout(
&self,
dur: Duration,
) -> Result<Option<Value>>
pub async fn read_event_with_timeout( &self, dur: Duration, ) -> Result<Option<Value>>
Read with timeout; None on timeout.
Sourcepub async fn clear_pending_events(&self)
pub async fn clear_pending_events(&self)
Clear pending inbound events.
Sourcepub async fn peel_stale_pending_control_events(&self) -> Vec<String>
pub async fn peel_stale_pending_control_events(&self) -> Vec<String>
Peel stale pending control frames at turn start.
Sourcepub async fn push_pending_event(&self, ev: Value)
pub async fn push_pending_event(&self, ev: Value)
Re-queue an event ahead of subsequent Client::read_event calls.
Applies priority-aware drop when the pending buffer is full
(Go PushPendingEvent parity).
Sourcepub fn set_inbound_max_size(&self, n: usize)
pub fn set_inbound_max_size(&self, n: usize)
Override the pending-event cap at runtime (Go SetInboundMaxSize parity).
Sourcepub fn receive_messages(&self, buffer: usize) -> Receiver<Value>
pub fn receive_messages(&self, buffer: usize) -> Receiver<Value>
Spawn a background reader that streams inbound frames on a channel.
The channel closes when the connection ends or the client disconnects.
Solicited frames (RPC responses / subscription confirmations) are still
routed through the internal mux and are NOT forwarded on this channel;
only unsolicited app events are forwarded (Go ReceiveMessages parity).
Heartbeat, ping/pong, and delivery-ack handling are still performed by the internal reader task; this method exposes the already-routed inbound queue as a channel for consumers that prefer pull-style streaming.
Sourcepub async fn send_input(&self, text: &str, opts: SendInputOptions) -> Result<()>
pub async fn send_input(&self, text: &str, opts: SendInputOptions) -> Result<()>
Notify loop_input.
Sourcepub async fn loop_new(
&self,
params: Map<String, Value>,
) -> Result<Map<String, Value>>
pub async fn loop_new( &self, params: Map<String, Value>, ) -> Result<Map<String, Value>>
loop_new RPC.
Sourcepub async fn loop_subscribe(
&self,
loop_id: &str,
stream_delivery: &str,
) -> Result<String>
pub async fn loop_subscribe( &self, loop_id: &str, stream_delivery: &str, ) -> Result<String>
Subscribe to loop_events.
Sourcepub async fn loop_cards_fetch(
&self,
loop_id: &str,
) -> Result<Map<String, Value>>
pub async fn loop_cards_fetch( &self, loop_id: &str, ) -> Result<Map<String, Value>>
loop_cards_fetch.
Sourcepub async fn loop_history_fetch(
&self,
loop_id: &str,
) -> Result<Map<String, Value>>
pub async fn loop_history_fetch( &self, loop_id: &str, ) -> Result<Map<String, Value>>
loop_history_fetch.
Sourcepub async fn loop_messages(
&self,
loop_id: &str,
limit: u32,
offset: u32,
) -> Result<Map<String, Value>>
pub async fn loop_messages( &self, loop_id: &str, limit: u32, offset: u32, ) -> Result<Map<String, Value>>
loop_messages.
Sourcepub async fn loop_state_get(&self, loop_id: &str) -> Result<Map<String, Value>>
pub async fn loop_state_get(&self, loop_id: &str) -> Result<Map<String, Value>>
loop_state_get.
Sourcepub async fn loop_state_update(
&self,
loop_id: &str,
state: Map<String, Value>,
) -> Result<Map<String, Value>>
pub async fn loop_state_update( &self, loop_id: &str, state: Map<String, Value>, ) -> Result<Map<String, Value>>
loop_state_update.
Sourcepub async fn loop_tree(
&self,
loop_id: &str,
format: Option<&str>,
) -> Result<Map<String, Value>>
pub async fn loop_tree( &self, loop_id: &str, format: Option<&str>, ) -> Result<Map<String, Value>>
loop_tree.
Sourcepub async fn loop_prune(
&self,
loop_id: &str,
retention_days: Option<i32>,
dry_run: bool,
) -> Result<Map<String, Value>>
pub async fn loop_prune( &self, loop_id: &str, retention_days: Option<i32>, dry_run: bool, ) -> Result<Map<String, Value>>
loop_prune.
Sourcepub async fn loop_detach(&self, subscription_id: &str) -> Result<()>
pub async fn loop_detach(&self, subscription_id: &str) -> Result<()>
Detach from a loop by unsubscribing (subscription_id from loop_subscribe).
Sourcepub async fn authenticate(
&self,
access_key: &str,
secret_key: &str,
) -> Result<Map<String, Value>>
pub async fn authenticate( &self, access_key: &str, secret_key: &str, ) -> Result<Map<String, Value>>
Authenticate with access/secret keys.
Sourcepub async fn refresh_auth_token(
&self,
refresh_token: &str,
) -> Result<Map<String, Value>>
pub async fn refresh_auth_token( &self, refresh_token: &str, ) -> Result<Map<String, Value>>
Refresh auth token.
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 on this long-lived connection.
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 autopilot_subscribe(&self) -> Result<String>
pub async fn autopilot_subscribe(&self) -> Result<String>
Subscribe to autopilot_events (long-lived worker stream).
Sourcepub async fn autopilot_unsubscribe(&self, subscription_id: &str) -> Result<()>
pub async fn autopilot_unsubscribe(&self, subscription_id: &str) -> Result<()>
Unsubscribe from an autopilot events subscription.
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.
Sourcepub async fn cron_list(
&self,
status: Option<&str>,
) -> Result<Map<String, Value>>
pub async fn cron_list( &self, status: Option<&str>, ) -> Result<Map<String, Value>>
cron_list.
Sourcepub async fn invoke_skill(
&self,
skill: &str,
args: &str,
) -> Result<Map<String, Value>>
pub async fn invoke_skill( &self, skill: &str, args: &str, ) -> Result<Map<String, Value>>
invoke_skill on this connection (stream socket for turn enqueue).
Sourcepub async fn reattach_and_probe(&self, loop_id: &str) -> Result<()>
pub async fn reattach_and_probe(&self, loop_id: &str) -> Result<()>
Reattach + subscribe + loop_get probe.
Sourcepub async fn command_request(
&self,
command: &str,
loop_id: Option<&str>,
params: Option<Map<String, Value>>,
) -> Result<Map<String, Value>>
pub async fn command_request( &self, command: &str, loop_id: Option<&str>, params: Option<Map<String, Value>>, ) -> Result<Map<String, Value>>
command_request RPC (structured slash command).
Mirrors Go CommandRequest. Default timeout 30s.
Sourcepub async fn command_clear(&self, loop_id: &str) -> Result<Map<String, Value>>
pub async fn command_clear(&self, loop_id: &str) -> Result<Map<String, Value>>
/clear — clear loop conversation history.
Sourcepub async fn command_exit(&self, loop_id: &str) -> Result<Map<String, Value>>
pub async fn command_exit(&self, loop_id: &str) -> Result<Map<String, Value>>
/exit — stop the loop and mark for exit.
Sourcepub async fn command_quit(&self, loop_id: &str) -> Result<Map<String, Value>>
pub async fn command_quit(&self, loop_id: &str) -> Result<Map<String, Value>>
/quit — alias for /exit.
Sourcepub async fn command_detach(&self, loop_id: &str) -> Result<Map<String, Value>>
pub async fn command_detach(&self, loop_id: &str) -> Result<Map<String, Value>>
/detach — mark the loop as detached (continues running server-side).
Sourcepub async fn command_cancel(&self, loop_id: &str) -> Result<Map<String, Value>>
pub async fn command_cancel(&self, loop_id: &str) -> Result<Map<String, Value>>
/cancel — cancel the running query.
Sourcepub async fn command_memory(&self, loop_id: &str) -> Result<Map<String, Value>>
pub async fn command_memory(&self, loop_id: &str) -> Result<Map<String, Value>>
/memory — query memory stats.
Sourcepub async fn command_policy(&self) -> Result<Map<String, Value>>
pub async fn command_policy(&self) -> Result<Map<String, Value>>
/policy — query the active policy profile.
Sourcepub async fn command_history(&self, loop_id: &str) -> Result<Map<String, Value>>
pub async fn command_history(&self, loop_id: &str) -> Result<Map<String, Value>>
/history — query input history.
Sourcepub async fn command_config(&self) -> Result<Map<String, Value>>
pub async fn command_config(&self) -> Result<Map<String, Value>>
/config — query daemon configuration.
Sourcepub async fn command_review(&self, loop_id: &str) -> Result<Map<String, Value>>
pub async fn command_review(&self, loop_id: &str) -> Result<Map<String, Value>>
/review — query conversation review.
Sourcepub async fn command_plan(&self, loop_id: &str) -> Result<Map<String, Value>>
pub async fn command_plan(&self, loop_id: &str) -> Result<Map<String, Value>>
/plan — query current plan.
Sourcepub async fn command_autopilot_dashboard(
&self,
loop_id: &str,
) -> Result<Map<String, Value>>
pub async fn command_autopilot_dashboard( &self, loop_id: &str, ) -> Result<Map<String, Value>>
/autopilot_dashboard — show autopilot dashboard.
Sourcepub async fn wait_for_daemon_ready(
&self,
timeout: Duration,
) -> Result<Map<String, Value>>
pub async fn wait_for_daemon_ready( &self, timeout: Duration, ) -> Result<Map<String, Value>>
Wait for the protocol-1 connection_ack handshake to report readiness_state == "ready".
Returns immediately when the handshake already completed during Client::connect;
otherwise polls inbound frames for an out-of-band connection_ack.
Default timeout 10s (Go WaitForDaemonReady parity).
Source§impl Client
impl Client
Sourcepub async fn send_command(&self, cmd: &str) -> Result<()>
pub async fn send_command(&self, cmd: &str) -> Result<()>
Fire slash_command notification (Go SendCommand parity).
Sourcepub async fn send_detach(&self) -> Result<()>
pub async fn send_detach(&self) -> Result<()>
Fire disconnect notification (Go SendDetach parity).
Sourcepub async fn send_daemon_status(&self, request_id: &[&str]) -> Result<()>
pub async fn send_daemon_status(&self, request_id: &[&str]) -> Result<()>
Send daemon_status request envelope (Go SendDaemonStatus parity).
Sourcepub async fn send_daemon_shutdown(&self, request_id: &[&str]) -> Result<()>
pub async fn send_daemon_shutdown(&self, request_id: &[&str]) -> Result<()>
Send daemon_shutdown request envelope (Go SendDaemonShutdown parity).
Sourcepub async fn send_config_get(
&self,
section: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_config_get( &self, section: &str, request_id: &[&str], ) -> Result<()>
Send config_get request envelope (Go SendConfigGet parity).
Sourcepub async fn send_config_reload(&self, request_id: &[&str]) -> Result<()>
pub async fn send_config_reload(&self, request_id: &[&str]) -> Result<()>
Send config_reload request envelope (Go SendConfigReload parity).
Sourcepub async fn send_skills_list(&self, request_id: &[&str]) -> Result<()>
pub async fn send_skills_list(&self, request_id: &[&str]) -> Result<()>
Send skills_list request envelope (Go SendSkillsList parity).
Sourcepub async fn send_models_list(&self, request_id: &[&str]) -> Result<()>
pub async fn send_models_list(&self, request_id: &[&str]) -> Result<()>
Send models_list request envelope (Go SendModelsList parity).
Sourcepub async fn send_invoke_skill(
&self,
skill: &str,
args: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_invoke_skill( &self, skill: &str, args: &str, request_id: &[&str], ) -> Result<()>
Send invoke_skill request envelope (Go SendInvokeSkill parity).
Sourcepub async fn send_mcp_status(&self, request_id: &[&str]) -> Result<()>
pub async fn send_mcp_status(&self, request_id: &[&str]) -> Result<()>
Send mcp_status request envelope (Go SendMCPStatus parity).
Sourcepub async fn send_loop_list(
&self,
filter: Option<Map<String, Value>>,
limit: u32,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_list( &self, filter: Option<Map<String, Value>>, limit: u32, request_id: &[&str], ) -> Result<()>
Send loop_list request envelope (Go SendLoopList parity).
Sourcepub async fn send_loop_get(
&self,
loop_id: &str,
verbose: bool,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_get( &self, loop_id: &str, verbose: bool, request_id: &[&str], ) -> Result<()>
Send loop_get request envelope (Go SendLoopGet parity).
Sourcepub async fn send_loop_tree(
&self,
loop_id: &str,
format: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_tree( &self, loop_id: &str, format: &str, request_id: &[&str], ) -> Result<()>
Send loop_tree request envelope (Go SendLoopTree parity).
Sourcepub async fn send_loop_prune(
&self,
loop_id: &str,
keep_latest: u32,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_prune( &self, loop_id: &str, keep_latest: u32, request_id: &[&str], ) -> Result<()>
Send loop_prune request envelope (Go SendLoopPrune parity).
Sourcepub async fn send_loop_delete(
&self,
loop_id: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_delete( &self, loop_id: &str, request_id: &[&str], ) -> Result<()>
Send loop_delete request envelope (Go SendLoopDelete parity).
Sourcepub async fn send_loop_reattach(
&self,
loop_id: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_reattach( &self, loop_id: &str, request_id: &[&str], ) -> Result<()>
Send loop_reattach request envelope (Go SendLoopReattach parity).
Sourcepub async fn send_loop_subscribe(
&self,
loop_id: &str,
wire_tier: &str,
stream_delivery: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_subscribe( &self, loop_id: &str, wire_tier: &str, stream_delivery: &str, request_id: &[&str], ) -> Result<()>
Send loop_events subscribe envelope (Go SendLoopSubscribe parity).
Pass empty wire_tier / stream_delivery to omit those fields.
Sourcepub async fn send_loop_detach(
&self,
loop_id: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_detach( &self, loop_id: &str, request_id: &[&str], ) -> Result<()>
Send unsubscribe by subscription id (Go SendLoopDetach parity).
When request_id is empty, loop_id is used as the subscription id.
Sourcepub async fn send_loop_new(
&self,
client_workspace: &str,
user_id: &str,
client_workspace_id: &str,
is_ephemeral: bool,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_new( &self, client_workspace: &str, user_id: &str, client_workspace_id: &str, is_ephemeral: bool, request_id: &[&str], ) -> Result<()>
Send loop_new request envelope (Go SendLoopNew parity).
Sourcepub async fn send_loop_input(&self, loop_id: &str, content: &str) -> Result<()>
pub async fn send_loop_input(&self, loop_id: &str, content: &str) -> Result<()>
Send loop_input notification (Go SendLoopInput parity).
Sourcepub async fn send_loop_messages(
&self,
loop_id: &str,
limit: u32,
offset: u32,
include_events: bool,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_messages( &self, loop_id: &str, limit: u32, offset: u32, include_events: bool, request_id: &[&str], ) -> Result<()>
Send loop_messages request envelope (Go SendLoopMessages parity).
Sourcepub async fn send_loop_state_get(
&self,
loop_id: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_state_get( &self, loop_id: &str, request_id: &[&str], ) -> Result<()>
Send loop_state_get request envelope (Go SendLoopStateGet parity).
Sourcepub async fn send_loop_state_update(
&self,
loop_id: &str,
values: Map<String, Value>,
as_node: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_state_update( &self, loop_id: &str, values: Map<String, Value>, as_node: &str, request_id: &[&str], ) -> Result<()>
Send loop_state_update request envelope (Go SendLoopStateUpdate parity).
Sourcepub async fn send_loop_cards_fetch(
&self,
loop_id: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_cards_fetch( &self, loop_id: &str, request_id: &[&str], ) -> Result<()>
Send loop_cards_fetch request envelope (Go SendLoopCardsFetch parity).
Sourcepub async fn send_loop_history_fetch(
&self,
loop_id: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_loop_history_fetch( &self, loop_id: &str, request_id: &[&str], ) -> Result<()>
Send loop_history_fetch request envelope (Go SendLoopHistoryFetch parity).
Sourcepub async fn send_auth(
&self,
access_key: &str,
secret_key: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_auth( &self, access_key: &str, secret_key: &str, request_id: &[&str], ) -> Result<()>
Send auth request envelope (Go SendAuth parity).
Sourcepub async fn send_auth_refresh(
&self,
refresh_token: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_auth_refresh( &self, refresh_token: &str, request_id: &[&str], ) -> Result<()>
Send auth_refresh request envelope (Go SendAuthRefresh parity).
Sourcepub async fn send_cron_add(
&self,
text: &str,
priority: i32,
request_id: &[&str],
) -> Result<()>
pub async fn send_cron_add( &self, text: &str, priority: i32, request_id: &[&str], ) -> Result<()>
Send cron_add request envelope (Go SendCronAdd parity).
Sourcepub async fn send_cron_list(
&self,
status: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_cron_list( &self, status: &str, request_id: &[&str], ) -> Result<()>
Send cron_list request envelope (Go SendCronList parity).
Sourcepub async fn send_cron_show(
&self,
job_id: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_cron_show( &self, job_id: &str, request_id: &[&str], ) -> Result<()>
Send cron_show request envelope (Go SendCronShow parity).
Sourcepub async fn send_cron_cancel(
&self,
job_id: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_cron_cancel( &self, job_id: &str, request_id: &[&str], ) -> Result<()>
Send cron_cancel request envelope (Go SendCronCancel parity).
Sourcepub async fn send_job_create(
&self,
goal: &str,
workspace: Option<&str>,
request_id: &[&str],
) -> Result<()>
pub async fn send_job_create( &self, goal: &str, workspace: Option<&str>, request_id: &[&str], ) -> Result<()>
Fire-and-forget job_create (Go SendJobCreate parity).
Sourcepub async fn send_job_status(
&self,
job_id: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_job_status( &self, job_id: &str, request_id: &[&str], ) -> Result<()>
Fire-and-forget job_status (Go SendJobStatus parity).
Sourcepub async fn send_job_pause(
&self,
job_id: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_job_pause( &self, job_id: &str, request_id: &[&str], ) -> Result<()>
Fire-and-forget job_pause (Go SendJobPause parity).
Sourcepub async fn send_job_resume(
&self,
job_id: &str,
request_id: &[&str],
) -> Result<()>
pub async fn send_job_resume( &self, job_id: &str, request_id: &[&str], ) -> Result<()>
Fire-and-forget job_resume (Go SendJobResume parity).