Struct consul::Keystore
[−]
[src]
pub struct Keystore { /* fields omitted */ }
Methods
impl Keystore
[src]
fn new(address: &str) -> Keystore
fn set_key(&self, key: String, value: String) -> ConsulResult<()>
fn acquire_lock(
&self,
key: String,
address: String,
session_id: &String
) -> ConsulResult<bool>
&self,
key: String,
address: String,
session_id: &String
) -> ConsulResult<bool>
fn release_lock(
&self,
key: String,
address: &str,
session_id: &String
) -> ConsulResult<bool>
&self,
key: String,
address: &str,
session_id: &String
) -> ConsulResult<bool>