Trait locutus_runtime::prelude::ComponentInterface
source · pub trait ComponentInterface {
fn process(
messages: InboundComponentMsg<'_>
) -> Result<Vec<OutboundComponentMsg, Global>, ComponentError>;
}Required Methods§
sourcefn process(
messages: InboundComponentMsg<'_>
) -> Result<Vec<OutboundComponentMsg, Global>, ComponentError>
fn process(
messages: InboundComponentMsg<'_>
) -> Result<Vec<OutboundComponentMsg, Global>, ComponentError>
Process inbound message, producing zero or more outbound messages in response Note that all state for the component must be stored using the secret mechanism.