pub struct ProgramTestClientBlocking { /* private fields */ }Implementations§
Source§impl ProgramTestClientBlocking
impl ProgramTestClientBlocking
pub fn new( program_: &[FuzzingProgram], config: &Config, ) -> Result<Self, FuzzClientError>
Trait Implementations§
Source§impl FuzzClient for ProgramTestClientBlocking
impl FuzzClient for ProgramTestClientBlocking
Source§fn get_account(&mut self, key: &Pubkey) -> AccountSharedData
fn get_account(&mut self, key: &Pubkey) -> AccountSharedData
Get the account at the given address
Source§fn get_last_blockhash(&self) -> Hash
fn get_last_blockhash(&self) -> Hash
Get last blockhash
Source§fn process_transaction(
&mut self,
transaction: impl Into<VersionedTransaction>,
) -> Result<(), FuzzClientError>
fn process_transaction( &mut self, transaction: impl Into<VersionedTransaction>, ) -> Result<(), FuzzClientError>
Send a transaction and return until the transaction has been finalized or rejected.
Source§fn set_account_custom(&mut self, address: &Pubkey, account: &AccountSharedData)
fn set_account_custom(&mut self, address: &Pubkey, account: &AccountSharedData)
Create or overwrite a custom account, subverting normal runtime checks.
Source§fn forward_in_time(&mut self, seconds: i64) -> Result<(), FuzzClientError>
fn forward_in_time(&mut self, seconds: i64) -> Result<(), FuzzClientError>
Forward in time by the desired number of seconds
Source§fn warp_to_slot(&mut self, warp_slot: u64)
fn warp_to_slot(&mut self, warp_slot: u64)
Warp to specific slot
Source§fn warp_to_epoch(&mut self, warp_epoch: u64)
fn warp_to_epoch(&mut self, warp_epoch: u64)
Warp to specific epoch
Source§fn get_sysvar<T: Sysvar>(&mut self) -> T
fn get_sysvar<T: Sysvar>(&mut self) -> T
Get the cluster rent
Auto Trait Implementations§
impl !Freeze for ProgramTestClientBlocking
impl RefUnwindSafe for ProgramTestClientBlocking
impl Send for ProgramTestClientBlocking
impl Sync for ProgramTestClientBlocking
impl Unpin for ProgramTestClientBlocking
impl UnwindSafe for ProgramTestClientBlocking
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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