pub enum TransactionCost<'a, Tx: SVMMessage> {
SimpleVote {
transaction: &'a Tx,
},
Transaction(UsageCostDetails<'a, Tx>),
}
Variants§
Implementations§
Source§impl<'a, Tx: SVMMessage> TransactionCost<'a, Tx>
impl<'a, Tx: SVMMessage> TransactionCost<'a, Tx>
pub fn sum(&self) -> u64
pub fn programs_execution_cost(&self) -> u64
pub fn is_simple_vote(&self) -> bool
pub fn data_bytes_cost(&self) -> u64
pub fn allocated_accounts_data_size(&self) -> u64
pub fn loaded_accounts_data_size_cost(&self) -> u64
pub fn signature_cost(&self) -> u64
pub fn write_lock_cost(&self) -> u64
pub fn writable_accounts(&self) -> impl Iterator<Item = &Pubkey>
pub fn num_transaction_signatures(&self) -> u64
pub fn num_secp256k1_instruction_signatures(&self) -> u64
pub fn num_ed25519_instruction_signatures(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl<'a, Tx> Freeze for TransactionCost<'a, Tx>
impl<'a, Tx> RefUnwindSafe for TransactionCost<'a, Tx>where
Tx: RefUnwindSafe,
impl<'a, Tx> Send for TransactionCost<'a, Tx>where
Tx: Sync,
impl<'a, Tx> Sync for TransactionCost<'a, Tx>where
Tx: Sync,
impl<'a, Tx> Unpin for TransactionCost<'a, Tx>
impl<'a, Tx> UnwindSafe for TransactionCost<'a, Tx>where
Tx: RefUnwindSafe,
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