pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn add_consumer( &mut self, node_id: &str, context_id: &str, profile: &str, ) -> Result<(), Error>
pub fn add_context( &mut self, node_id: &str, id: &str, name: &str, ) -> Result<(), Error>
pub fn add_node( &mut self, id: &str, name: &str, upstream: bool, token: Option<String>, ) -> Result<(), Error>
pub fn add_provider( &mut self, node_id: &str, context_id: &str, profile: &str, ) -> Result<(), Error>
pub fn add_system(&mut self) -> Result<(), Error>
pub fn get( &self, key: &str, default_value: Option<Value>, ) -> Result<Option<Value>, Error>
pub fn keys(&self) -> Result<Vec<String>, Error>
pub fn on_update(&mut self) -> Result<Receiver<Cache>, Error>
pub fn put(&mut self, key: &str, value: &str) -> Result<(), Error>
pub fn put_property( &mut self, node_id: &str, context_id: &str, profile: &str, property: &str, value: &str, ) -> Result<(), Error>
pub fn send( &mut self, format: Format, cmd: &str, args: &[String], ) -> Result<u64, Error>
pub fn stats(&self) -> Result<Stats, Error>
pub fn version(&self) -> Result<String, Error>
pub fn wait_for_open(&self, timeout: Duration) -> Result<(), Error>
Auto Trait Implementations§
impl !Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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