pub struct ChangeFeedOptions {
pub from_lsn: Option<u64>,
pub buffer_size: usize,
}Expand description
Options for Database::changes.
Fields§
§from_lsn: Option<u64>Resume after this LSN: the feed first yields every retained batch
with a greater LSN, then live batches. None starts with the next
commit.
buffer_size: usizeMaximum number of undelivered live batches before the feed ends with
LORA_CHANGES_LAGGED.
Trait Implementations§
Source§impl Clone for ChangeFeedOptions
impl Clone for ChangeFeedOptions
impl Copy for ChangeFeedOptions
Source§impl Debug for ChangeFeedOptions
impl Debug for ChangeFeedOptions
Auto Trait Implementations§
impl Freeze for ChangeFeedOptions
impl RefUnwindSafe for ChangeFeedOptions
impl Send for ChangeFeedOptions
impl Sync for ChangeFeedOptions
impl Unpin for ChangeFeedOptions
impl UnsafeUnpin for ChangeFeedOptions
impl UnwindSafe for ChangeFeedOptions
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