[][src]Struct c3p0_pool_pg::r2d2::postgres::transaction::Config

pub struct Config { /* fields omitted */ }

Configuration of a transaction.

Methods

impl Config[src]

pub fn new() -> Config[src]

Creates a new Config with no configuration overrides.

pub fn isolation_level(
    &mut self,
    isolation_level: IsolationLevel
) -> &mut Config
[src]

Sets the isolation level of the configuration.

pub fn read_only(&mut self, read_only: bool) -> &mut Config[src]

Sets the read-only property of a transaction.

If enabled, a transaction will be unable to modify any persistent database state.

pub fn deferrable(&mut self, deferrable: bool) -> &mut Config[src]

Sets the deferrable property of a transaction.

If enabled in a read only, serializable transaction, the transaction may block when created, after which it will run without the normal overhead of a serializable transaction and will not be forced to roll back due to serialization failures.

Trait Implementations

impl Debug for Config[src]

impl Default for Config[src]

Auto Trait Implementations

impl Unpin for Config

impl Send for Config

impl Sync for Config

impl RefUnwindSafe for Config

impl UnwindSafe for Config

Blanket Implementations

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

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

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self