pub struct ActivityRequestorControlApi { /* private fields */ }Expand description
Bindings for Requestor Control part of the Activity API.
Implementations§
Source§impl ActivityRequestorControlApi
impl ActivityRequestorControlApi
Sourcepub async fn create_activity(&self, agreement_id: &str) -> Result<String>
pub async fn create_activity(&self, agreement_id: &str) -> Result<String>
Creates new Activity based on given Agreement.
Sourcepub async fn destroy_activity(&self, activity_id: &str) -> Result<()>
pub async fn destroy_activity(&self, activity_id: &str) -> Result<()>
Destroys given Activity.
Sourcepub async fn exec(
&self,
script: ExeScriptRequest,
activity_id: &str,
) -> Result<String>
pub async fn exec( &self, script: ExeScriptRequest, activity_id: &str, ) -> Result<String>
Executes an ExeScript batch within a given Activity.
Sourcepub async fn get_exec_batch_results(
&self,
activity_id: &str,
batch_id: &str,
timeout: Option<f32>,
command_index: Option<usize>,
) -> Result<Vec<ExeScriptCommandResult>>
pub async fn get_exec_batch_results( &self, activity_id: &str, batch_id: &str, timeout: Option<f32>, command_index: Option<usize>, ) -> Result<Vec<ExeScriptCommandResult>>
Queries for ExeScript batch results.
Sourcepub async fn stream_exec_batch_results(
&self,
activity_id: &str,
batch_id: &str,
) -> Result<impl Stream<Item = RuntimeEvent>>
pub async fn stream_exec_batch_results( &self, activity_id: &str, batch_id: &str, ) -> Result<impl Stream<Item = RuntimeEvent>>
Streams ExeScript batch results
Trait Implementations§
Source§impl Clone for ActivityRequestorControlApi
impl Clone for ActivityRequestorControlApi
Source§fn clone(&self) -> ActivityRequestorControlApi
fn clone(&self) -> ActivityRequestorControlApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl WebInterface for ActivityRequestorControlApi
impl WebInterface for ActivityRequestorControlApi
const API_URL_ENV_VAR: &'static str = crate::activity::ACTIVITY_URL_ENV_VAR
const API_SUFFIX: &'static str = ACTIVITY_API_PATH
fn from_client(client: WebClient) -> Self
fn rebase_service_url(base_url: Rc<Url>) -> Result<Rc<Url>>
Auto Trait Implementations§
impl Freeze for ActivityRequestorControlApi
impl !RefUnwindSafe for ActivityRequestorControlApi
impl !Send for ActivityRequestorControlApi
impl !Sync for ActivityRequestorControlApi
impl Unpin for ActivityRequestorControlApi
impl !UnwindSafe for ActivityRequestorControlApi
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