pub trait TestRpc: Rpc + Sized {
// Required methods
fn set_account(&mut self, address: Pubkey, account: Account);
fn warp_to_slot(&mut self, slot: Slot) -> Result<(), RpcError>;
fn warp_slot_forward<'life0, 'async_trait>(
&'life0 mut self,
slot: Slot,
) -> Pin<Box<dyn Future<Output = Result<(), RpcError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn warp_epoch_forward<'life0, 'async_trait>(
&'life0 mut self,
epochs: u64,
) -> Pin<Box<dyn Future<Output = Result<(), RpcError>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
}Required Methods§
fn set_account(&mut self, address: Pubkey, account: Account)
fn warp_to_slot(&mut self, slot: Slot) -> Result<(), RpcError>
Provided Methods§
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.