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]
Trait Implementations§
Auto Trait Implementations§
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