pub struct ClientApi { /* private fields */ }
Implementations§
Source§impl ClientApi
impl ClientApi
Sourcepub async fn publisher_update(
&self,
caller_id: &str,
topic: &str,
publisher_apis: &Vec<String>,
) -> Result<Value>
pub async fn publisher_update( &self, caller_id: &str, topic: &str, publisher_apis: &Vec<String>, ) -> Result<Value>
Sends a “publisherUpdate” request to the ROS node.
§Arguments
caller_id
- A string slice representing the ID of the caller.topic
- A string slice representing the name of the topic.publisher_apis
- A vector of string slices representing the API URLs of the publishers.
§Returns
An anyhow::Result
indicating whether the request was successful.
Sourcepub async fn param_update(
&self,
caller_id: &str,
key: &str,
value: &Value,
) -> Result<Value>
pub async fn param_update( &self, caller_id: &str, key: &str, value: &Value, ) -> Result<Value>
Sends a “paramUpdate” request to the ROS node.
§Arguments
caller_id
- A string slice representing the ID of the caller.key
- A string slice representing the name of the parameter.value
- AValue
representing the new value of the parameter.
§Returns
An anyhow::Result
indicating whether the request was successful.
Auto Trait Implementations§
impl Freeze for ClientApi
impl !RefUnwindSafe for ClientApi
impl Send for ClientApi
impl Sync for ClientApi
impl Unpin for ClientApi
impl !UnwindSafe for ClientApi
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