pub trait InboundSink: Send + Sync {
// Required method
fn deliver<'life0, 'async_trait>(
&'life0 self,
event: InboundEvent,
) -> Pin<Box<dyn Future<Output = Result<(), SinkClosed>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn answer<'life0, 'async_trait>(
&'life0 self,
_answer: PromptAnswer,
) -> Pin<Box<dyn Future<Output = Result<(), SinkClosed>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Receives normalized events from channels. Implemented by the runtime.
Required Methods§
Sourcefn deliver<'life0, 'async_trait>(
&'life0 self,
event: InboundEvent,
) -> Pin<Box<dyn Future<Output = Result<(), SinkClosed>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn deliver<'life0, 'async_trait>(
&'life0 self,
event: InboundEvent,
) -> Pin<Box<dyn Future<Output = Result<(), SinkClosed>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Hands one event to the runtime. Returns quickly; processing happens elsewhere.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".