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

Record an insertion of a row in the current transaction

Record a deletion of a row in the current transaction

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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