[−][src]Enum pgx::callbacks::PgXactCallbackEvent
Postgres Transaction (Xact) Callback Events
Variants
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.
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.
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)
Same as ::Abort
, but for parallel workers
Same as ::Commit
, but for parallel workers
Same as ::PreCommit
, but for parallel workers
Same as ::Commit
, but for committing a prepared transaction
Same as ::PreCommit
, but for committing a prepared transaction
Trait Implementations
impl Clone for PgXactCallbackEvent
[src]
pub fn clone(&self) -> PgXactCallbackEvent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PgXactCallbackEvent
[src]
impl Eq for PgXactCallbackEvent
[src]
impl Hash for PgXactCallbackEvent
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<PgXactCallbackEvent> for PgXactCallbackEvent
[src]
pub fn eq(&self, other: &PgXactCallbackEvent) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for PgXactCallbackEvent
[src]
impl StructuralPartialEq for PgXactCallbackEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for PgXactCallbackEvent
[src]
impl Send for PgXactCallbackEvent
[src]
impl Sync for PgXactCallbackEvent
[src]
impl Unpin for PgXactCallbackEvent
[src]
impl UnwindSafe for PgXactCallbackEvent
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,