Struct tokio_zookeeper::MultiBuilder
source · pub struct MultiBuilder<'a> { /* private fields */ }
Expand description
Proxy for ZooKeeper
that batches operations into an atomic “multi” request.
Implementations§
source§impl<'a> MultiBuilder<'a>
impl<'a> MultiBuilder<'a>
sourcepub fn create<D, A>(self, path: &str, data: D, acl: A, mode: CreateMode) -> Selfwhere
D: Into<Cow<'static, [u8]>>,
A: Into<Cow<'static, [Acl]>>,
pub fn create<D, A>(self, path: &str, data: D, acl: A, mode: CreateMode) -> Selfwhere D: Into<Cow<'static, [u8]>>, A: Into<Cow<'static, [Acl]>>,
Attach a create operation to this multi request.
See ZooKeeper::create
for details.
sourcepub fn set_data<D>(self, path: &str, version: Option<i32>, data: D) -> Selfwhere
D: Into<Cow<'static, [u8]>>,
pub fn set_data<D>(self, path: &str, version: Option<i32>, data: D) -> Selfwhere D: Into<Cow<'static, [u8]>>,
Attach a set data operation to this multi request.
See ZooKeeper::set_data
for details.
sourcepub fn delete(self, path: &str, version: Option<i32>) -> Self
pub fn delete(self, path: &str, version: Option<i32>) -> Self
Attach a delete operation to this multi request.
See ZooKeeper::delete
for details.