pub struct Configuration<T: Time> {
pub transaction_mining_time: Duration,
pub block_time: Duration,
pub time: T,
}Fields§
§transaction_mining_time: DurationTime it takes for a transaction to be mined by a block after being sent to the transaction pool.
block_time: DurationTime it takes for a block to be mined. The transaction manager uses this value to calculate the polling interval when checking whether the transaction was mined.
time: TDependency that handles process sleeping and calculating elapsed time.
Implementations§
Source§impl<T: Time> Configuration<T>
impl<T: Time> Configuration<T>
pub fn set_transaction_mining_time( self, transaction_mining_time: Duration, ) -> Configuration<T>
pub fn set_block_time(self, block_time: Duration) -> Configuration<T>
pub fn set_time(self, time: T) -> Configuration<T>
Trait Implementations§
Source§impl<T: Clone + Time> Clone for Configuration<T>
impl<T: Clone + Time> Clone for Configuration<T>
Source§fn clone(&self) -> Configuration<T>
fn clone(&self) -> Configuration<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for Configuration<DefaultTime>
impl Default for Configuration<DefaultTime>
Auto Trait Implementations§
impl<T> Freeze for Configuration<T>where
T: Freeze,
impl<T> RefUnwindSafe for Configuration<T>where
T: RefUnwindSafe,
impl<T> Send for Configuration<T>where
T: Send,
impl<T> Sync for Configuration<T>where
T: Sync,
impl<T> Unpin for Configuration<T>where
T: Unpin,
impl<T> UnwindSafe for Configuration<T>where
T: UnwindSafe,
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