Skip to main content

CoreStateUpdate

Trait CoreStateUpdate 

Source
pub trait CoreStateUpdate: StateUpdate {
    // Required method
    fn from_messages(messages: Vec<Message>) -> Self;
}
Expand description

Extension trait for state updates that carry messages.

Required by pe_tools::ToolNode and any built-in node that needs to construct updates containing message lists. Generated by #[derive(State)] on types that have a messages: Vec<Message> field.

Required Methods§

Source

fn from_messages(messages: Vec<Message>) -> Self

Create an update containing only these messages.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§