pub trait Effect: Send + 'static {
type Ffi: Serialize;
// Required method
fn serialize(self) -> (Self::Ffi, ResolveBytes);
}
Expand description
Implemented automatically with the Effect macro from crux_macros
.
This is used by the Bridge
to serialize effects going across the
FFI boundary.