pub struct RunsResource { /* private fields */ }Expand description
Lists and inspects runs.
Implementations§
Source§impl RunsResource
impl RunsResource
Sourcepub async fn list(&self, query: &[(&str, &str)]) -> Result<JsonObject>
pub async fn list(&self, query: &[(&str, &str)]) -> Result<JsonObject>
Returns the run list envelope (data + pagination).
Sourcepub async fn stats(&self) -> Result<JsonObject>
pub async fn stats(&self) -> Result<JsonObject>
Returns aggregate run statistics.
Sourcepub async fn get(&self, run_id: &str) -> Result<JsonObject>
pub async fn get(&self, run_id: &str) -> Result<JsonObject>
Returns a single run.
Sourcepub fn subscribe(&self, run_id: &str) -> EventStream
pub fn subscribe(&self, run_id: &str) -> EventStream
Streams durable run:update snapshots until the run is terminal.
Sourcepub async fn wait(
&self,
run_id: &str,
opts: RunWaitOptions,
) -> Result<JsonObject>
pub async fn wait( &self, run_id: &str, opts: RunWaitOptions, ) -> Result<JsonObject>
Waits for successful run completion. Failed and cancelled runs return
Error::RunWaitFailed with the final durable snapshot.
Auto Trait Implementations§
impl !RefUnwindSafe for RunsResource
impl !UnwindSafe for RunsResource
impl Freeze for RunsResource
impl Send for RunsResource
impl Sync for RunsResource
impl Unpin for RunsResource
impl UnsafeUnpin for RunsResource
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