pub trait ProtoTransaction {
type Input;
type Tx: ProtoTransaction;
// Required method
fn with(self, input: Self::Input) -> Self::Tx;
}
Expand description
Interface to describe an operation that can eventually
be turned into a Transaction
, given the right input.
Required Associated Types§
Sourcetype Tx: ProtoTransaction
type Tx: ProtoTransaction
This operation’s next state. Can either be another ProtoTransaction
or a whole Transaction
ready to be executed.
Required Methods§
Sourcefn with(self, input: Self::Input) -> Self::Tx
fn with(self, input: Self::Input) -> Self::Tx
Feed this operation with its required input, advancing its
state to another ProtoTransaction
that may or may not
be ready for execution.