[−][src]Struct c3p0_pg::r2d2::postgres::transaction::Config
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]
&mut self,
isolation_level: IsolationLevel
) -> &mut Config
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
Auto Trait Implementations
impl Sync for Config
impl Send for Config
impl Unpin for Config
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self