pub trait ContractExt: Contract {
type Context;
// Required method
fn get_context(&self) -> Result<Self::Context, ContextError>;
}
Expand description
Extention trait for Contracts.
Required Associated Types§
Required Methods§
Sourcefn get_context(&self) -> Result<Self::Context, ContextError>
fn get_context(&self) -> Result<Self::Context, ContextError>
Get a thread-safe handle to a ContractContext.