Struct solana_program_test::ProgramTestContext [−][src]
pub struct ProgramTestContext { pub banks_client: BanksClient, pub last_blockhash: Hash, pub payer: Keypair, // some fields omitted }
Fields
banks_client: BanksClient
last_blockhash: Hash
payer: Keypair
Implementations
impl ProgramTestContext
[src]
impl ProgramTestContext
[src]pub fn genesis_config(&self) -> &GenesisConfig
[src]
pub fn increment_vote_account_credits(
&mut self,
vote_account_address: &Pubkey,
number_of_credits: u64
)
[src]
pub fn increment_vote_account_credits(
&mut self,
vote_account_address: &Pubkey,
number_of_credits: u64
)
[src]Manually increment vote credits for the current epoch in the specified vote account to simulate validator voting activity
pub fn warp_to_slot(&mut self, warp_slot: Slot) -> Result<(), ProgramTestError>
[src]
pub fn warp_to_slot(&mut self, warp_slot: Slot) -> Result<(), ProgramTestError>
[src]Force the working bank ahead to a new slot
Auto Trait Implementations
impl !RefUnwindSafe for ProgramTestContext
impl Send for ProgramTestContext
impl Sync for ProgramTestContext
impl Unpin for ProgramTestContext
impl !UnwindSafe for ProgramTestContext
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,