Struct solana_core::test_validator::TestValidatorGenesis [−][src]
Implementations
impl TestValidatorGenesis
[src]
pub fn ledger_path<P: Into<PathBuf>>(&mut self, ledger_path: P) -> &mut Self
[src]
pub fn fee_rate_governor(
&mut self,
fee_rate_governor: FeeRateGovernor
) -> &mut Self
[src]
&mut self,
fee_rate_governor: FeeRateGovernor
) -> &mut Self
pub fn rent(&mut self, rent: Rent) -> &mut Self
[src]
pub fn rpc_config(&mut self, rpc_config: JsonRpcConfig) -> &mut Self
[src]
pub fn rpc_port(&mut self, rpc_port: u16) -> &mut Self
[src]
pub fn warp_slot(&mut self, warp_slot: Slot) -> &mut Self
[src]
pub fn bpf_jit(&mut self, bpf_jit: bool) -> &mut Self
[src]
pub fn add_account(&mut self, address: Pubkey, account: Account) -> &mut Self
[src]
Add an account to the test environment
pub fn add_accounts<T>(&mut self, accounts: T) -> &mut Self where
T: IntoIterator<Item = (Pubkey, Account)>,
[src]
T: IntoIterator<Item = (Pubkey, Account)>,
pub fn clone_accounts<T>(
&mut self,
addresses: T,
rpc_client: &RpcClient
) -> &mut Self where
T: IntoIterator<Item = Pubkey>,
[src]
&mut self,
addresses: T,
rpc_client: &RpcClient
) -> &mut Self where
T: IntoIterator<Item = Pubkey>,
pub fn add_account_with_file_data(
&mut self,
address: Pubkey,
lamports: u64,
owner: Pubkey,
filename: &str
) -> &mut Self
[src]
&mut self,
address: Pubkey,
lamports: u64,
owner: Pubkey,
filename: &str
) -> &mut Self
Add an account to the test environment with the account data in the provided filename
pub fn add_account_with_base64_data(
&mut self,
address: Pubkey,
lamports: u64,
owner: Pubkey,
data_base64: &str
) -> &mut Self
[src]
&mut self,
address: Pubkey,
lamports: u64,
owner: Pubkey,
data_base64: &str
) -> &mut Self
Add an account to the test environment with the account data in the provided as a base 64 string
pub fn add_program(
&mut self,
program_name: &str,
program_id: Pubkey
) -> &mut Self
[src]
&mut self,
program_name: &str,
program_id: Pubkey
) -> &mut Self
Add a BPF program to the test environment.
program_name
will also used to locate the BPF shared object in the current or fixtures
directory.
pub fn add_programs_with_path(&mut self, programs: &[ProgramInfo]) -> &mut Self
[src]
Add a list of programs to the test environment. pub fn add_programs_with_path<’a>(&’a mut self, programs: &ProgramInfo) -> &’a mut Self {
pub fn start_with_mint_address(
&self,
mint_address: Pubkey
) -> Result<TestValidator, Box<dyn Error>>
[src]
&self,
mint_address: Pubkey
) -> Result<TestValidator, Box<dyn Error>>
Start a test validator with the address of the mint account that will receive tokens created at genesis.
pub fn start(&self) -> (TestValidator, Keypair)
[src]
Start a test validator
Returns a new TestValidator
as well as the keypair for the mint account that will receive tokens
created at genesis.
This function panics on initialization failure.
Trait Implementations
impl Default for TestValidatorGenesis
[src]
fn default() -> TestValidatorGenesis
[src]
Auto Trait Implementations
impl RefUnwindSafe for TestValidatorGenesis
impl Send for TestValidatorGenesis
impl Sync for TestValidatorGenesis
impl Unpin for TestValidatorGenesis
impl UnwindSafe for TestValidatorGenesis
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,