pub trait Signaller<Hash>{
type Result;
// Required method
fn signal(signal: &ExecutionSignal<Hash>) -> Self::Result;
}Expand description
This trait provides access for a provider to send/recieve signals. This is a bidirectional trait, both 3vm & sdk implement a variant of this with a differing error type.
This enables a contract to provide some feedback to the circuit and tell it if it should break or not. This also allows a pallet to enable signalling.
Required Associated Types§
Required Methods§
fn signal(signal: &ExecutionSignal<Hash>) -> Self::Result
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.