pub trait Env {
// Required methods
fn query<Q: Into<QueryRequest>>(&self, query: Q) -> QueryResponse;
fn address_for_instance(&self, instance_id: InstanceId) -> Address;
fn debug_print(&self, msg: &str);
}Expand description
Environment query trait.
Required Methods§
Sourcefn query<Q: Into<QueryRequest>>(&self, query: Q) -> QueryResponse
fn query<Q: Into<QueryRequest>>(&self, query: Q) -> QueryResponse
Perform an environment query.
Sourcefn address_for_instance(&self, instance_id: InstanceId) -> Address
fn address_for_instance(&self, instance_id: InstanceId) -> Address
Returns an address for the contract instance id.
Sourcefn debug_print(&self, msg: &str)
fn debug_print(&self, msg: &str)
Prints a message to the console. Useful when debugging.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".