pub struct MiniClient { /* private fields */ }Implementations§
Source§impl MiniClient
impl MiniClient
pub async fn submit( &self, epoch: HostEpoch, request_id: RequestId, prompt: String, ) -> BackendResult<MiniReceipt>
Sourcepub async fn request(
&self,
epoch: HostEpoch,
agent_id: AgentId,
request_id: RequestId,
) -> BackendResult<Option<MiniResult>>
pub async fn request( &self, epoch: HostEpoch, agent_id: AgentId, request_id: RequestId, ) -> BackendResult<Option<MiniResult>>
Lookup only within this already-owned incarnation; never loads or replays input when an admission reply was lost.
pub async fn result( &self, receipt: MiniReceipt, ) -> BackendResult<Option<MiniResult>>
Sourcepub async fn cancel(&self, receipt: MiniReceipt) -> BackendResult<bool>
pub async fn cancel(&self, receipt: MiniReceipt) -> BackendResult<bool>
Only signal this exact volatile run. Neither true nor cancellation of a query proves settlement; late callbacks still belong to the owner.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MiniClient
impl !UnwindSafe for MiniClient
impl Forget for MiniClient
impl Freeze for MiniClient
impl Move for MiniClient
impl Send for MiniClient
impl Sync for MiniClient
impl Unpin for MiniClient
impl UnsafeUnpin for MiniClient
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