pub enum TransactionCost {
SimpleVote {
writable_accounts: Vec<Pubkey>,
},
Transaction(UsageCostDetails),
}
Variants§
Implementations§
source§impl TransactionCost
impl TransactionCost
pub fn sum(&self) -> u64
pub fn bpf_execution_cost(&self) -> u64
pub fn is_simple_vote(&self) -> bool
pub fn data_bytes_cost(&self) -> u64
pub fn account_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 builtins_execution_cost(&self) -> u64
pub fn writable_accounts(&self) -> &[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 Freeze for TransactionCost
impl RefUnwindSafe for TransactionCost
impl Send for TransactionCost
impl Sync for TransactionCost
impl Unpin for TransactionCost
impl UnwindSafe for TransactionCost
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