pub struct WalSourceState { /* private fields */ }Expand description
Transaction-aware converter from decoded WAL events to dataflow updates.
Implementations§
Source§impl WalSourceState
impl WalSourceState
Sourcepub fn apply(&mut self, event: DecodedEvent) -> Vec<WalUpdate>
pub fn apply(&mut self, event: DecodedEvent) -> Vec<WalUpdate>
Applies a decoded WAL event and returns updates ready to enter dataflow.
Sourcepub fn apply_transaction(
&mut self,
event: DecodedEvent,
) -> Option<WalTransaction>
pub fn apply_transaction( &mut self, event: DecodedEvent, ) -> Option<WalTransaction>
Applies a decoded WAL event and returns a complete transaction at commit.
Trait Implementations§
Source§impl Clone for WalSourceState
impl Clone for WalSourceState
Source§fn clone(&self) -> WalSourceState
fn clone(&self) -> WalSourceState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalSourceState
impl Debug for WalSourceState
Source§impl Default for WalSourceState
impl Default for WalSourceState
Source§fn default() -> WalSourceState
fn default() -> WalSourceState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WalSourceState
impl RefUnwindSafe for WalSourceState
impl Send for WalSourceState
impl Sync for WalSourceState
impl Unpin for WalSourceState
impl UnsafeUnpin for WalSourceState
impl UnwindSafe for WalSourceState
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,
impl<T> Data for Twhere
T: Clone + 'static,
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 moreSource§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign, for types that do not implement AddAssign.