pub trait SubstateReadHandler {
type Error;
// Required method
fn on_read_substate(
&mut self,
heap: &Heap,
value: &IndexedScryptoValue,
location: SubstateDevice,
) -> Result<(), Self::Error>;
}Expand description
Callback for substate read, from SubstateIO
Required Associated Types§
Required Methods§
fn on_read_substate( &mut self, heap: &Heap, value: &IndexedScryptoValue, location: SubstateDevice, ) -> Result<(), Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".