pub trait OpCode {
// Required methods
fn pre_submit(self: Pin<&mut Self>) -> Result<Decision>;
fn on_event(self: Pin<&mut Self>, event: &Event) -> Poll<Result<usize>>;
}
Expand description
Abstraction of operations.
pub trait OpCode {
// Required methods
fn pre_submit(self: Pin<&mut Self>) -> Result<Decision>;
fn on_event(self: Pin<&mut Self>, event: &Event) -> Poll<Result<usize>>;
}
Abstraction of operations.