[][src]Enum pgx::callbacks::PgXactCallbackEvent

pub enum PgXactCallbackEvent {
    Abort,
    Commit,
    PreCommit,
    ParallelAbort,
    ParallelCommit,
    ParallelPreCommit,
    Prepare,
    PrePrepare,
}

Postgres Transaction (Xact) Callback Events

Variants

Abort

Fired when a transaction is aborted. It is mutually exclusive with PgXactCallbackEvent::Commit

Safety

Any kind of Rust panic!() or Postgres ereport(ERROR) while this event is firing will cause the Postgres backend to abort.

Commit

Fired when a transcation is committed. It is mutually exclusive with PgXactCallbackEvent::Abort

Safety

Any kind of Rust panic!() or Postgres ereport(ERROR) while this event is firing will cause the Postgres backend to abort.

PreCommit

Fired immediately before the transaction is committed. This is your last chance to cleanly abort the current transaction via a Rust panic!() or Postgres ereport(ERROR)

ParallelAbort

Same as ::Abort, but for parallel workers

ParallelCommit

Same as ::Commit, but for parallel workers

ParallelPreCommit

Same as ::PreCommit, but for parallel workers

Prepare

Same as ::Commit, but for committing a prepared transaction

PrePrepare

Same as ::PreCommit, but for committing a prepared transaction

Trait Implementations

impl Clone for PgXactCallbackEvent[src]

impl Debug for PgXactCallbackEvent[src]

impl Eq for PgXactCallbackEvent[src]

impl Hash for PgXactCallbackEvent[src]

impl PartialEq<PgXactCallbackEvent> for PgXactCallbackEvent[src]

impl StructuralEq for PgXactCallbackEvent[src]

impl StructuralPartialEq for PgXactCallbackEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.