pub trait InterpretItem<Item, RootEvent, Path>: Sendwhere
Item: ActionItem,{
// Required method
fn interpret_item(
&mut self,
item: Item,
) -> impl Future<Output = ItemSettlement<Item, Item::Accepted, Item::Rejection, Item::Prerequisite>> + Send;
}Expand description
Concrete interpreter ownership port for one exact typed action item.
Item, RootEvent, and Path select the capability statically. Distinct
delivery and runtime-request values remain distinct implementations without
an erased envelope, registry, or runtime lookup.
Required Methods§
Sourcefn interpret_item(
&mut self,
item: Item,
) -> impl Future<Output = ItemSettlement<Item, Item::Accepted, Item::Rejection, Item::Prerequisite>> + Send
fn interpret_item( &mut self, item: Item, ) -> impl Future<Output = ItemSettlement<Item, Item::Accepted, Item::Rejection, Item::Prerequisite>> + Send
Attempt exactly one item and return its complete settlement.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".