pub struct UpdateOpts {
pub max_diffs: u64,
pub until: Option<u64>,
pub stop: Stop,
}Expand description
How to update.
Fields§
§max_diffs: u64The most diffs applied in one transaction, 60 by default. Merged, they cost far less than one at a time, as an object changed in several is written once.
until: Option<u64>The last sequence to apply, instead of the stream’s latest.
stop: StopAsks to stop: checked before each batch, so the batch in progress is finished and the update returns with
UpdateStats::stopped set. Never asks by default.
Trait Implementations§
Source§impl Clone for UpdateOpts
impl Clone for UpdateOpts
Source§impl Debug for UpdateOpts
impl Debug for UpdateOpts
Auto Trait Implementations§
impl Forget for UpdateOpts
impl Freeze for UpdateOpts
impl Move for UpdateOpts
impl RefUnwindSafe for UpdateOpts
impl Send for UpdateOpts
impl Sync for UpdateOpts
impl Unpin for UpdateOpts
impl UnsafeUnpin for UpdateOpts
impl UnwindSafe for UpdateOpts
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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