Struct ya_client::activity::ActivityRequestorControlApi
source · 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 copy 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 !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