pub struct StandardTransactionProcessor { /* private fields */ }Expand description
Standard transaction state processor
Routes incoming TAP messages through the FSM and delegates decisions
to the configured DecisionHandler.
Implementations§
Source§impl StandardTransactionProcessor
impl StandardTransactionProcessor
Sourcepub fn new(
storage: Arc<Storage>,
event_bus: Arc<EventBus>,
agents: Arc<AgentRegistry>,
decision_mode: DecisionMode,
) -> Self
pub fn new( storage: Arc<Storage>, event_bus: Arc<EventBus>, agents: Arc<AgentRegistry>, decision_mode: DecisionMode, ) -> Self
Create a new standard transaction processor with the given decision mode.
Trait Implementations§
Source§impl TransactionStateProcessor for StandardTransactionProcessor
impl TransactionStateProcessor for StandardTransactionProcessor
Source§fn process_message<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 PlainMessage,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process_message<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 PlainMessage,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process an incoming message and update transaction state
Auto Trait Implementations§
impl Freeze for StandardTransactionProcessor
impl !RefUnwindSafe for StandardTransactionProcessor
impl Send for StandardTransactionProcessor
impl Sync for StandardTransactionProcessor
impl Unpin for StandardTransactionProcessor
impl UnsafeUnpin for StandardTransactionProcessor
impl !UnwindSafe for StandardTransactionProcessor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more