pub trait ActExt {
// Required methods
fn act_create(
&self,
name: String,
symbol: String,
decimals: u8,
total_supply: U256,
issuer_key: PublicKey,
payment: &PaymentOption,
) -> impl Future<Output = Result<(PublicKey, XorName), String>> + Send;
fn act_unspent(
&self,
pubkey: &PublicKey,
spend: PublicKey,
) -> impl Future<Output = Result<(XorName, U256), String>> + Send;
fn act_balance(
&self,
pubkey: &PublicKey,
spends: Vec<PublicKey>,
) -> impl Future<Output = Result<U256, String>> + Send;
fn act_token_info(
&self,
token_id: &XorName,
) -> impl Future<Output = Result<TokenInfo, String>> + Send;
}Required Methods§
fn act_create( &self, name: String, symbol: String, decimals: u8, total_supply: U256, issuer_key: PublicKey, payment: &PaymentOption, ) -> impl Future<Output = Result<(PublicKey, XorName), String>> + Send
fn act_unspent( &self, pubkey: &PublicKey, spend: PublicKey, ) -> impl Future<Output = Result<(XorName, U256), String>> + Send
fn act_balance( &self, pubkey: &PublicKey, spends: Vec<PublicKey>, ) -> impl Future<Output = Result<U256, String>> + Send
fn act_token_info( &self, token_id: &XorName, ) -> impl Future<Output = Result<TokenInfo, String>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".