[−][src]Trait zookeeper_async::ZooKeeperExt
Extended ZooKeeper operations that are not needed for the "core."
Required methods
#[must_use]pub fn ensure_path<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = ZkResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = ZkResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Ensure that path
exists and create all potential paths leading up to it if it does not.
This operates in a manner similar to mkdir -p
.
#[must_use]pub fn ensure_path_with_leaf_mode<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
mode: CreateMode
) -> Pin<Box<dyn Future<Output = ZkResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
path: &'life1 str,
mode: CreateMode
) -> Pin<Box<dyn Future<Output = ZkResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Ensures path like ensure_path
, but with the last node created with mode
.
#[must_use]pub fn get_children_recursive<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = ZkResult<Vec<String>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = ZkResult<Vec<String>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Performs a breadth-first tree traversal of the tree starting at path
,
returning a list of fully prefixed child nodes.
NOTE: This is not an atomic operation.
#[must_use]pub fn delete_recursive<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = ZkResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = ZkResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Deletes the node at path
and all its children.
NOTE: This is not an atomic operation.
Implementors
impl ZooKeeperExt for ZooKeeper
[src]
pub fn ensure_path<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = ZkResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = ZkResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn ensure_path_with_leaf_mode<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
mode: CreateMode
) -> Pin<Box<dyn Future<Output = ZkResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
path: &'life1 str,
mode: CreateMode
) -> Pin<Box<dyn Future<Output = ZkResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn get_children_recursive<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = ZkResult<Vec<String>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = ZkResult<Vec<String>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn delete_recursive<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = ZkResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
path: &'life1 str
) -> Pin<Box<dyn Future<Output = ZkResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,