pub struct Manager<M: Middleware, GO: GasOracle, DB: Database, T: Time> { /* private fields */ }Implementations§
Source§impl<M, GO, DB, T> Manager<M, GO, DB, T>
Public functions.
impl<M, GO, DB, T> Manager<M, GO, DB, T>
Public functions.
Sourcepub async fn new(
provider: M,
gas_oracle: GO,
db: DB,
chain: Chain,
configuration: Configuration<T>,
) -> Result<(Self, Option<TransactionReceipt>), Error<M, GO, DB>>
pub async fn new( provider: M, gas_oracle: GO, db: DB, chain: Chain, configuration: Configuration<T>, ) -> Result<(Self, Option<TransactionReceipt>), Error<M, GO, DB>>
Sends and confirms any pending transaction persisted in the database before returning an instance of the transaction manager. In case a pending transaction was mined, it’s receipt is also returned.
pub async fn force_new( provider: M, gas_oracle: GO, db: DB, chain: Chain, configuration: Configuration<T>, ) -> Result<Self, Error<M, GO, DB>>
Sourcepub async fn send_transaction(
self,
transaction: Transaction,
confirmations: usize,
priority: Priority,
) -> Result<(Self, TransactionReceipt), Error<M, GO, DB>>
pub async fn send_transaction( self, transaction: Transaction, confirmations: usize, priority: Priority, ) -> Result<(Self, TransactionReceipt), Error<M, GO, DB>>
Sends a transaction and returns the receipt.
Trait Implementations§
Auto Trait Implementations§
impl<M, GO, DB, T> Freeze for Manager<M, GO, DB, T>
impl<M, GO, DB, T> RefUnwindSafe for Manager<M, GO, DB, T>
impl<M, GO, DB, T> Send for Manager<M, GO, DB, T>
impl<M, GO, DB, T> Sync for Manager<M, GO, DB, T>
impl<M, GO, DB, T> Unpin for Manager<M, GO, DB, T>
impl<M, GO, DB, T> UnwindSafe for Manager<M, GO, DB, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more