pub struct Master { /* private fields */ }
Implementations§
source§impl Master
impl Master
pub fn new( master_uri: &str, client_id: &str, caller_api: &str, ) -> Result<Master>
pub fn register_service( &self, service: &str, service_api: &str, ) -> Result<i32, ResponseError>
pub fn unregister_service( &self, service: &str, service_api: &str, ) -> Result<i32, ResponseError>
pub fn register_subscriber( &self, topic: &str, topic_type: &str, ) -> Result<Vec<String>, ResponseError>
pub fn unregister_subscriber(&self, topic: &str) -> Result<i32, ResponseError>
pub fn register_publisher( &self, topic: &str, topic_type: &str, ) -> Result<Vec<String>, ResponseError>
pub fn unregister_publisher(&self, topic: &str) -> Result<i32, ResponseError>
pub fn lookup_node(&self, node_name: &str) -> Result<String, ResponseError>
pub fn get_published_topics( &self, subgraph: &str, ) -> Result<Vec<(String, String)>, ResponseError>
pub fn get_topic_types(&self) -> Result<Vec<TopicTuple>, ResponseError>
pub fn get_system_state(&self) -> Result<SystemStateTuple, ResponseError>
pub fn get_uri(&self) -> Result<String, ResponseError>
pub fn lookup_service(&self, service: &str) -> Result<String, ResponseError>
pub fn delete_param(&self, key: &str) -> Result<i32, ResponseError>
pub fn set_param<T: Serialize>( &self, key: &str, value: &T, ) -> Result<i32, ResponseError>
pub fn set_param_any( &self, key: &str, value: Value, ) -> Result<(), ResponseError>
pub fn get_param<'a, T: Deserialize<'a>>( &self, key: &str, ) -> Result<T, ResponseError>
pub fn get_param_any(&self, key: &str) -> Result<Value, ResponseError>
pub fn search_param(&self, key: &str) -> Result<String, ResponseError>
pub fn subscribe_param<'a, T: Deserialize<'a>>( &self, key: &str, ) -> Result<T, ResponseError>
pub fn subscribe_param_any(&self, key: &str) -> Result<Value, ResponseError>
pub fn unsubscribe_param(&self, key: &str) -> Result<i32, ResponseError>
pub fn has_param(&self, key: &str) -> Result<bool, ResponseError>
pub fn get_param_names(&self) -> Result<Vec<String>, ResponseError>
Auto Trait Implementations§
impl Freeze for Master
impl RefUnwindSafe for Master
impl Send for Master
impl Sync for Master
impl Unpin for Master
impl UnwindSafe for Master
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more