pub struct Connection { /* private fields */ }Implementations§
Source§impl Connection
impl Connection
pub fn add_node( &mut self, id: &str, name: &str, upstream: bool, token: Option<String>, ) -> 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 put(&mut self, key: &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 Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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