pub struct MultiReader<'a> { /* private fields */ }
Expand description
MultiReader commits multiple read operations in one request to achieve snapshot like semantics.
Implementations§
source§impl<'a> MultiReader<'a>
impl<'a> MultiReader<'a>
sourcepub fn add_get_data(&mut self, path: &str) -> Result<(), Error>
pub fn add_get_data(&mut self, path: &str) -> Result<(), Error>
Adds operation to get stat and data for node with given path.
See Client::get_data for more details.
sourcepub fn add_get_children(&mut self, path: &str) -> Result<(), Error>
pub fn add_get_children(&mut self, path: &str) -> Result<(), Error>
Adds operation to get stat and children for node with given path.
See Client::get_children for more details.
sourcepub fn commit(
&mut self,
) -> impl Future<Output = Result<Vec<MultiReadResult>, Error>> + Send + 'a
pub fn commit( &mut self, ) -> impl Future<Output = Result<Vec<MultiReadResult>, Error>> + Send + 'a
Commits multiple operations in one request to reach consistent read.
§Notable behaviors
Individual errors(e.g. Error::NoNode) are reported individually through MultiReadResult::Error.
Auto Trait Implementations§
impl<'a> Freeze for MultiReader<'a>
impl<'a> !RefUnwindSafe for MultiReader<'a>
impl<'a> Send for MultiReader<'a>
impl<'a> Sync for MultiReader<'a>
impl<'a> Unpin for MultiReader<'a>
impl<'a> !UnwindSafe for MultiReader<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more