Action

Trait Action 

Source
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§

Source

fn with_gas_limit(self, gas_limit: GasUnit) -> Self

Source

fn with_value(self, value: ValueUnit) -> Self

Source

fn with_args<F: FnOnce(Self::Args) -> Self::Args>(self, args_fn: F) -> Self

Source

fn gas_limit(&self) -> Option<GasUnit>

Source

fn value(&self) -> ValueUnit

Source

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.

Implementors§

Source§

impl<TRemoting: Remoting, TActionIo: ActionIo> Action for RemotingAction<TRemoting, TActionIo>

Source§

type Args = <TRemoting as Remoting>::Args