pub struct TransactionProcessingEnvironment<'a> {
pub blockhash: Hash,
pub epoch_total_stake: Option<u64>,
pub epoch_vote_accounts: Option<&'a VoteAccountsHashMap>,
pub feature_set: Arc<FeatureSet>,
pub fee_structure: Option<&'a FeeStructure>,
pub lamports_per_signature: u64,
pub rent_collector: Option<&'a RentCollector>,
}Expand description
Runtime environment for transaction batch processing.
Fields§
§blockhash: HashThe blockhash to use for the transaction batch.
epoch_total_stake: Option<u64>The total stake for the current epoch.
epoch_vote_accounts: Option<&'a VoteAccountsHashMap>The vote accounts for the current epoch.
feature_set: Arc<FeatureSet>Runtime feature set to use for the transaction batch.
fee_structure: Option<&'a FeeStructure>Fee structure to use for assessing transaction fees.
lamports_per_signature: u64Lamports per signature to charge per transaction.
rent_collector: Option<&'a RentCollector>Rent collector to use for the transaction batch.
Trait Implementations§
source§impl<'a> Default for TransactionProcessingEnvironment<'a>
impl<'a> Default for TransactionProcessingEnvironment<'a>
source§fn default() -> TransactionProcessingEnvironment<'a>
fn default() -> TransactionProcessingEnvironment<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for TransactionProcessingEnvironment<'a>
impl<'a> RefUnwindSafe for TransactionProcessingEnvironment<'a>
impl<'a> Send for TransactionProcessingEnvironment<'a>
impl<'a> Sync for TransactionProcessingEnvironment<'a>
impl<'a> Unpin for TransactionProcessingEnvironment<'a>
impl<'a> UnwindSafe for TransactionProcessingEnvironment<'a>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more