[][src]Trait zookeeper_async::ZooKeeperExt

pub trait ZooKeeperExt {
#[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
;
#[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
;
#[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
;
#[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
; }

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]

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]

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]

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]

Deletes the node at path and all its children. NOTE: This is not an atomic operation.

Loading content...

Implementors

impl ZooKeeperExt for ZooKeeper[src]

Loading content...