pub struct AccountsStorage<T> { /* private fields */ }Expand description
trident methods
Implementations§
Source§impl AccountsStorage<KeypairStore>
impl AccountsStorage<KeypairStore>
pub fn get_or_create_account( &mut self, account_id: u8, client: &mut impl FuzzClient, lamports: u64, ) -> Keypair
pub fn get(&self, account_id: u8) -> Keypair
Source§impl AccountsStorage<ProgramStore>
impl AccountsStorage<ProgramStore>
pub fn get_or_create_account( &mut self, account_id: u8, _client: &mut impl FuzzClient, program_id: Pubkey, ) -> Pubkey
pub fn get(&self, account_id: u8) -> Pubkey
Source§impl AccountsStorage<StakeStore>
impl AccountsStorage<StakeStore>
pub fn get_or_create_delegated_account( &mut self, account_id: u8, client: &mut impl FuzzClient, voter_pubkey: Pubkey, staker: Pubkey, withdrawer: Pubkey, stake: u64, activation_epoch: u64, deactivation_epoch: Option<u64>, lockup: Option<Lockup>, ) -> Pubkey
pub fn get_or_create_initialized_account( &mut self, account_id: u8, client: &mut impl FuzzClient, staker: Pubkey, withdrawer: Pubkey, lockup: Option<Lockup>, ) -> Pubkey
pub fn get(&self, account_id: u8) -> Pubkey
Source§impl AccountsStorage<TokenStore>
impl AccountsStorage<TokenStore>
pub fn get_or_create_account( &mut self, account_id: u8, client: &mut impl FuzzClient, mint: Pubkey, owner: Pubkey, amount: u64, delegate: Option<Pubkey>, is_native: Option<u64>, delegated_amount: u64, close_authority: Option<Pubkey>, ) -> Pubkey
pub fn get(&self, account_id: u8) -> Pubkey
Source§impl<T> AccountsStorage<T>
impl<T> AccountsStorage<T>
pub fn new(max_accounts: u8) -> AccountsStorage<T>
pub fn set_custom( &mut self, account_id: u8, client: &mut impl FuzzClient, address: Pubkey, account: AccountSharedData, )
Trait Implementations§
Source§impl<T> Default for AccountsStorage<T>
impl<T> Default for AccountsStorage<T>
Source§fn default() -> AccountsStorage<T>
fn default() -> AccountsStorage<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for AccountsStorage<T>
impl<T> RefUnwindSafe for AccountsStorage<T>where
T: RefUnwindSafe,
impl<T> Send for AccountsStorage<T>where
T: Send,
impl<T> Sync for AccountsStorage<T>where
T: Sync,
impl<T> Unpin for AccountsStorage<T>where
T: Unpin,
impl<T> UnwindSafe for AccountsStorage<T>where
T: UnwindSafe,
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