Struct discotech_zookeeper::ZooKeeper
[−]
[src]
pub struct ZooKeeper { /* fields omitted */ }
Methods
impl ZooKeeper
[src]
pub fn connect<W>(
connect_string: &str,
timeout: Duration,
watcher: W
) -> ZkResult<ZooKeeper> where
W: Watcher + 'static,
[src]
connect_string: &str,
timeout: Duration,
watcher: W
) -> ZkResult<ZooKeeper> where
W: Watcher + 'static,
pub fn add_auth(&self, scheme: &str, auth: Vec<u8>) -> ZkResult<()>
[src]
pub fn create(
&self,
path: &str,
data: Vec<u8>,
acl: Vec<Acl>,
mode: CreateMode
) -> ZkResult<String>
[src]
&self,
path: &str,
data: Vec<u8>,
acl: Vec<Acl>,
mode: CreateMode
) -> ZkResult<String>
pub fn delete(&self, path: &str, version: i32) -> ZkResult<()>
[src]
pub fn exists(&self, path: &str, watch: bool) -> ZkResult<Stat>
[src]
pub fn get_acl(&self, path: &str) -> ZkResult<(Vec<Acl>, Stat)>
[src]
pub fn get_children(&self, path: &str, watch: bool) -> ZkResult<Vec<String>>
[src]
pub fn get_data(&self, path: &str, watch: bool) -> ZkResult<(Vec<u8>, Stat)>
[src]
pub fn set_acl(&self, path: &str, acl: Vec<Acl>, version: i32) -> ZkResult<Stat>
[src]
pub fn set_data(
&self,
path: &str,
data: Vec<u8>,
version: i32
) -> ZkResult<Stat>
[src]
&self,
path: &str,
data: Vec<u8>,
version: i32
) -> ZkResult<Stat>
pub fn close(&self)
[src]
Trait Implementations
impl Clone for ZooKeeper
[src]
fn clone(&self) -> ZooKeeper
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more