pub struct RexBuilder<K, In = (), Out = ()>where
K: Rex,{ /* private fields */ }Implementations§
Source§impl<K, In, Out> RexBuilder<K, In, Out>where
K: Rex + Timeout,
K::Message: TimeoutMessage<K>,
TimeoutManager<K>: NotificationProcessor<K::Message>,
impl<K, In, Out> RexBuilder<K, In, Out>where
K: Rex + Timeout,
K::Message: TimeoutMessage<K>,
TimeoutManager<K>: NotificationProcessor<K::Message>,
pub fn ctx(&self) -> BuilderContext<K>
pub fn with_sm<SM: StateMachine<K> + 'static>(self, state_machine: SM) -> Self
pub fn with_np<NP: NotificationProcessor<K::Message> + 'static>( self, processor: NP, ) -> Self
pub fn push_np<NP: NotificationProcessor<K::Message> + 'static>( &mut self, processor: NP, )
pub fn with_ctx_np<NP: NotificationProcessor<K::Message> + 'static>( self, op: impl FnOnce(BuilderContext<K>) -> NP, ) -> Self
pub fn push_ctx_np<NP: NotificationProcessor<K::Message> + 'static>( &mut self, op: impl FnOnce(BuilderContext<K>) -> NP, )
pub fn with_boxed_np( self, processor: Box<dyn NotificationProcessor<K::Message>>, ) -> Self
pub const fn with_timeout_manager( self, timeout_topic: <K::Message as RexMessage>::Topic, ) -> Self
pub const fn with_tick_rate(self, tick_rate: Duration) -> Self
pub fn build(self) -> EmptyContext<K>
pub fn build_with_handle(self, join_set: &mut JoinSet<()>) -> EmptyContext<K>
Source§impl<K> RexBuilder<K, K::In, K::Out>where
K: Rex + Timeout + Ingress,
K::Message: TimeoutMessage<K> + TryInto<K::Out, Error = Report<ConversionError>>,
K::Input: TryFrom<K::In, Error = Report<ConversionError>>,
TimeoutManager<K>: NotificationProcessor<K::Message>,
impl<K> RexBuilder<K, K::In, K::Out>where
K: Rex + Timeout + Ingress,
K::Message: TimeoutMessage<K> + TryInto<K::Out, Error = Report<ConversionError>>,
K::Input: TryFrom<K::In, Error = Report<ConversionError>>,
TimeoutManager<K>: NotificationProcessor<K::Message>,
pub fn new_connected( outbound_tx: UnboundedSender<K::Out>, ) -> (UnboundedSender<K::In>, Self)
pub fn ingress_tx(&self) -> UnboundedSender<K::In>
pub fn with_ingress_adapter( self, state_routers: Vec<BoxedStateRouter<K, K::In>>, ingress_topic: <K::Message as RexMessage>::Topic, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<K, In, Out> Freeze for RexBuilder<K, In, Out>
impl<K, In = (), Out = ()> !RefUnwindSafe for RexBuilder<K, In, Out>
impl<K, In, Out> Send for RexBuilder<K, In, Out>
impl<K, In, Out> Sync for RexBuilder<K, In, Out>
impl<K, In, Out> Unpin for RexBuilder<K, In, Out>
impl<K, In = (), Out = ()> !UnwindSafe for RexBuilder<K, In, Out>
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