pub struct OrdinaryClient { /* private fields */ }Implementations§
Source§impl OrdinaryClient
impl OrdinaryClient
pub async fn submit( &self, operation: OrdinaryOperation, ) -> BackendResult<RunTicket>
Sourcepub async fn submit_admitted(
&self,
host_id: String,
request_id: String,
messages: Vec<AgentMessage>,
) -> BackendResult<AdmittedRunTicket>
pub async fn submit_admitted( &self, host_id: String, request_id: String, messages: Vec<AgentMessage>, ) -> BackendResult<AdmittedRunTicket>
Admit the exact prompt under request_id before executing it. Only
wait_admitted returning a receipt is a durable input claim.
Sourcepub async fn admission(
&self,
request_id: &str,
) -> BackendResult<Option<HostAdmissionStatus>>
pub async fn admission( &self, request_id: &str, ) -> BackendResult<Option<HostAdmissionStatus>>
Read the native admission/reconciliation status for one request.
Sourcepub async fn get_result(
&self,
run_id: &str,
history: HistoryIdentity,
) -> BackendResult<Option<(RunResult, HistoryIdentity)>>
pub async fn get_result( &self, run_id: &str, history: HistoryIdentity, ) -> BackendResult<Option<(RunResult, HistoryIdentity)>>
Read an already-linked native result and prove a physical barrier after its records/references were read. This does not execute or resume a run.
Sourcepub async fn admissions(&self) -> BackendResult<Vec<HostAdmissionStatus>>
pub async fn admissions(&self) -> BackendResult<Vec<HostAdmissionStatus>>
Bounded listing of native admissions for reconciliation.
pub async fn deliver( &self, message: AgentMessage, delivery: Delivery, ) -> BackendResult<QueueResult>
Sourcepub async fn cancel(&self, ticket: RunId) -> BackendResult<bool>
pub async fn cancel(&self, ticket: RunId) -> BackendResult<bool>
Cooperative signal for this exact ticket, not proof of settlement. A late cancellation can never target a subsequent operation on the same Agent.
Sourcepub async fn cancel_guarded(
&self,
guard: CatalogGuard,
ticket: RunId,
) -> BackendResult<bool>
pub async fn cancel_guarded( &self, guard: CatalogGuard, ticket: RunId, ) -> BackendResult<bool>
Validate the owner-observed epoch/revision and exact volatile ticket in the same control critical section as cancellation. A successful signal is not settlement or a durable request receipt; no subsequent ticket is affected by a late cancellation of the addressed one.
Sourcepub async fn cancel_submitted_guarded(
&self,
guard: CatalogGuard,
request_id: &str,
) -> BackendResult<bool>
pub async fn cancel_submitted_guarded( &self, guard: CatalogGuard, request_id: &str, ) -> BackendResult<bool>
Signal only the active supervised task associated with this exact input identity. Duplicates cannot retarget it. A parked deferred operation or restored historical receipt returns false; no operation is resumed.
Sourcepub async fn snapshot(&self) -> BackendResult<BackendSnapshot>
pub async fn snapshot(&self) -> BackendResult<BackendSnapshot>
Cheap volatile observation; does not scan transcripts or prove settlement.
Sourcepub fn unsaved_messages(&self) -> BackendResult<Vec<UnsavedMessage>>
pub fn unsaved_messages(&self) -> BackendResult<Vec<UnsavedMessage>>
Explicit recovery/export surface. The caller owns the returned payload; a future IPC adapter must apply its own response/output byte budgets.