Skip to main content

InterpretItem

Trait InterpretItem 

Source
pub trait InterpretItem<Item, RootEvent, Path>: Send
where Item: ActionItem,
{ // Required method fn interpret_item<'a>( &'a mut self, input: Item::Input<'a>, received: &'a mut Option<Item::Reply>, ) -> impl Future<Output = ()> + Send + 'a where Item: 'a; }
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§

Source

fn interpret_item<'a>( &'a mut self, input: Item::Input<'a>, received: &'a mut Option<Item::Reply>, ) -> impl Future<Output = ()> + Send + 'a
where Item: 'a,

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.

Implementors§