Struct aragog::transaction::TransactionBuilder[][src]

pub struct TransactionBuilder { /* fields omitted */ }

Builder for Aragog Transaction

Implementations

impl TransactionBuilder[src]

pub fn new() -> Self[src]

Instantiates a new builder for a Transaction

pub fn collections(self, collections: Vec<String>) -> Self[src]

The built transaction will be restricted to the specified collection names

pub fn wait_for_sync(self) -> Self[src]

The built transaction will wait for Database synchronization

pub fn lock_timeout(self, lock_timeout: usize) -> Self[src]

Defines the transaction lock timeout (default value: 60 000)

pub async fn build(
    self,
    db_pool: &DatabaseConnectionPool
) -> Result<Transaction, ServiceError>
[src]

Builds the transaction with the database connection pool

Trait Implementations

impl Default for TransactionBuilder[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> Instrument for T[src]

impl<T> Instrument 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.