Skip to main content

RuntimeMessageStore

Trait RuntimeMessageStore 

Source
pub trait RuntimeMessageStore:
    MessageRetriever
    + Send
    + Sync {
    // Required methods
    fn add_input_message<'life0, 'async_trait>(
        &'life0 self,
        session_id: SessionId,
        input: InputMessage,
    ) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn store_message<'life0, 'async_trait>(
        &'life0 self,
        session_id: SessionId,
        message: Message,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
๐Ÿ‘ŽDeprecated since 0.17.25:

execution is event-authoritative; use everruns_host::EventLog and EventHistory

Expand description

Legacy writable message-store contract retained only for 0.17 source paths.

It is not accepted by RuntimeBackends and is never used by execution. Canonical events are the only maintained write path; this shim is scheduled for deletion in 0.18.

Required Methodsยง

Source

fn add_input_message<'life0, 'async_trait>( &'life0 self, session_id: SessionId, input: InputMessage, ) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

๐Ÿ‘ŽDeprecated since 0.17.25:

execution is event-authoritative; use everruns_host::EventLog and EventHistory

Legacy, non-authoritative input-message write.

Source

fn store_message<'life0, 'async_trait>( &'life0 self, session_id: SessionId, message: Message, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

๐Ÿ‘ŽDeprecated since 0.17.25:

execution is event-authoritative; use everruns_host::EventLog and EventHistory

Legacy, non-authoritative message write.

Dyn Compatibilityยง

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Typesยง

Sourceยง

impl RuntimeMessageStore for InMemoryMessageRetriever

Sourceยง

fn add_input_message<'life0, 'async_trait>( &'life0 self, session_id: SessionId, input: InputMessage, ) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

๐Ÿ‘ŽDeprecated since 0.17.25:

execution is event-authoritative; use everruns_host::EventLog and EventHistory

Sourceยง

fn store_message<'life0, 'async_trait>( &'life0 self, session_id: SessionId, message: Message, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

๐Ÿ‘ŽDeprecated since 0.17.25:

execution is event-authoritative; use everruns_host::EventLog and EventHistory

Implementorsยง