pub struct ActivityRequestorStateApi { /* private fields */ }Expand description
Bindings for Requestor State part of the Activity API.
Implementations§
Source§impl ActivityRequestorStateApi
impl ActivityRequestorStateApi
Sourcepub async fn get_running_command(
&self,
activity_id: &str,
) -> Result<ExeScriptCommandState>
pub async fn get_running_command( &self, activity_id: &str, ) -> Result<ExeScriptCommandState>
Get running command for a specified Activity.
Sourcepub async fn get_state(&self, activity_id: &str) -> Result<ActivityState>
pub async fn get_state(&self, activity_id: &str) -> Result<ActivityState>
Get state of specified Activity.
Sourcepub async fn get_usage(&self, activity_id: &str) -> Result<ActivityUsage>
pub async fn get_usage(&self, activity_id: &str) -> Result<ActivityUsage>
Get usage of specified Activity.
Trait Implementations§
Source§impl Clone for ActivityRequestorStateApi
impl Clone for ActivityRequestorStateApi
Source§fn clone(&self) -> ActivityRequestorStateApi
fn clone(&self) -> ActivityRequestorStateApi
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 ActivityRequestorStateApi
impl WebInterface for ActivityRequestorStateApi
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 ActivityRequestorStateApi
impl !RefUnwindSafe for ActivityRequestorStateApi
impl !Send for ActivityRequestorStateApi
impl !Sync for ActivityRequestorStateApi
impl Unpin for ActivityRequestorStateApi
impl !UnwindSafe for ActivityRequestorStateApi
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