Trait Store

Source
pub trait Store<'s> {
    // Required method
    fn object<'life0, 'async_trait>(
        &'life0 self,
        id: AccountAddress,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Slice<'s>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Dynamically load objects by their ID. The output should be a Slice containing references to the raw BCS bytes and the corresponding MoveTypeLayout for the object. This implies the Store acts as a pool of cached objects.

Required Methods§

Source

fn object<'life0, 'async_trait>( &'life0 self, id: AccountAddress, ) -> Pin<Box<dyn Future<Output = Result<Option<Slice<'s>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§