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