pub trait ActionExt: Action {
// Provided methods
fn signer(&self) -> ActionSigner
where Self: Seed { ... }
fn execution_lamports(&self, execution_lamports: u64) -> u64 { ... }
fn validate_balance(
account: &AccountLoader<'_, Self>,
execution_lamports: u64,
) -> Result<()>
where Self: ZeroCopy + Owner + InitSpace { ... }
}
Expand description
Extentsion trait for Action
.
Provided Methods§
Sourcefn signer(&self) -> ActionSignerwhere
Self: Seed,
fn signer(&self) -> ActionSignerwhere
Self: Seed,
Action signer.
Sourcefn execution_lamports(&self, execution_lamports: u64) -> u64
fn execution_lamports(&self, execution_lamports: u64) -> u64
Execution lamports.
Sourcefn validate_balance(
account: &AccountLoader<'_, Self>,
execution_lamports: u64,
) -> Result<()>where
Self: ZeroCopy + Owner + InitSpace,
fn validate_balance(
account: &AccountLoader<'_, Self>,
execution_lamports: u64,
) -> Result<()>where
Self: ZeroCopy + Owner + InitSpace,
Validate balance.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.