pub struct FollowOpts {
pub max_diffs: u64,
pub wait: Duration,
pub once: bool,
pub stop: Stop,
}Expand description
How OpenMirror::follow keeps up with the replication stream.
Fields§
§max_diffs: u64The most diffs applied in one transaction, as UpdateOpts::max_diffs; 60 by default.
wait: DurationHow long to wait for a newer diff when up to date, 60 seconds by default. Unused with once.
once: boolReturn when up to date instead of waiting for newer diffs.
stop: StopAsks to stop; checked before each batch and while waiting.
Trait Implementations§
Source§impl Clone for FollowOpts
impl Clone for FollowOpts
Source§impl Debug for FollowOpts
impl Debug for FollowOpts
Auto Trait Implementations§
impl Forget for FollowOpts
impl Freeze for FollowOpts
impl Move for FollowOpts
impl RefUnwindSafe for FollowOpts
impl Send for FollowOpts
impl Sync for FollowOpts
impl Unpin for FollowOpts
impl UnsafeUnpin for FollowOpts
impl UnwindSafe for FollowOpts
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