Struct icrc1_test_env_state_machine::SMLedger
source · pub struct SMLedger { /* private fields */ }
Implementations§
Trait Implementations§
source§impl LedgerEnv for SMLedger
impl LedgerEnv for SMLedger
source§fn fork(&self) -> Self
fn fork(&self) -> Self
Creates a new environment pointing to the same ledger but using a new caller.
source§fn time(&self) -> SystemTime
fn time(&self) -> SystemTime
Returns the approximation of the current ledger time.
source§fn query<'life0, 'life1, 'async_trait, Input, Output>(
&'life0 self,
method: &'life1 str,
input: Input
) -> Pin<Box<dyn Future<Output = Result<Output>> + 'async_trait>>where
Input: ArgumentEncoder + Debug + 'async_trait,
Output: for<'a> ArgumentDecoder<'a> + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query<'life0, 'life1, 'async_trait, Input, Output>(
&'life0 self,
method: &'life1 str,
input: Input
) -> Pin<Box<dyn Future<Output = Result<Output>> + 'async_trait>>where
Input: ArgumentEncoder + Debug + 'async_trait,
Output: for<'a> ArgumentDecoder<'a> + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Executes a query call with the specified arguments on the ledger.
source§fn update<'life0, 'life1, 'async_trait, Input, Output>(
&'life0 self,
method: &'life1 str,
input: Input
) -> Pin<Box<dyn Future<Output = Result<Output>> + 'async_trait>>where
Input: ArgumentEncoder + Debug + 'async_trait,
Output: for<'a> ArgumentDecoder<'a> + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update<'life0, 'life1, 'async_trait, Input, Output>(
&'life0 self,
method: &'life1 str,
input: Input
) -> Pin<Box<dyn Future<Output = Result<Output>> + 'async_trait>>where
Input: ArgumentEncoder + Debug + 'async_trait,
Output: for<'a> ArgumentDecoder<'a> + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Executes an update call with the specified arguments on the ledger.
Auto Trait Implementations§
impl !RefUnwindSafe for SMLedger
impl !Send for SMLedger
impl !Sync for SMLedger
impl Unpin for SMLedger
impl !UnwindSafe for SMLedger
Blanket Implementations§
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