Struct dataflow::source::SourceTransaction [−][src]
pub struct SourceTransaction<'a> {
timestamp: RwLockReadGuard<'a, Timestamp>,
sender: &'a Sender<Event<Option<Timestamp>, Result<(Row, Timestamp, Diff), SourceError>>>,
}
Expand description
An active transaction at a particular point in time. An instance of this struct is provided to a source when calling start_tx() on its timestamper. This has the effect of freezing the timestamper clock while the data for the transaction is sent.
The transaction is automatically committed on Drop at which point the timestamper will continue ticking its internal clock.
Fields
timestamp: RwLockReadGuard<'a, Timestamp>
sender: &'a Sender<Event<Option<Timestamp>, Result<(Row, Timestamp, Diff), SourceError>>>
Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SourceTransaction<'a>
impl<'a> Send for SourceTransaction<'a>
impl<'a> Sync for SourceTransaction<'a>
impl<'a> Unpin for SourceTransaction<'a>
impl<'a> !UnwindSafe for SourceTransaction<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more