pub trait Action {
type Args;
// Required methods
fn with_gas_limit(self, gas_limit: GasUnit) -> Self;
fn with_value(self, value: ValueUnit) -> Self;
fn with_args<F: FnOnce(Self::Args) -> Self::Args>(self, args_fn: F) -> Self;
fn gas_limit(&self) -> Option<GasUnit>;
fn value(&self) -> ValueUnit;
fn args(&self) -> &Self::Args;
}Required Associated Types§
Required Methods§
fn with_gas_limit(self, gas_limit: GasUnit) -> Self
fn with_value(self, value: ValueUnit) -> Self
fn with_args<F: FnOnce(Self::Args) -> Self::Args>(self, args_fn: F) -> Self
fn gas_limit(&self) -> Option<GasUnit>
fn value(&self) -> ValueUnit
fn args(&self) -> &Self::Args
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.