Expand description
Event reactors and combinators.
This module provides APIs for constructing Reactor
types that respond to state and data
events by configuring and sampling data with time matrices.
Structs§
- And
- AndChain
- A type that can convert a collection of
Reactor
s into an ordered chain ofAnd
combinators. - Context
- Data
Event - Describes an arbitrary event with associated data of interest.
- Fail
- Filter
MapData Record - Inspect
- MapError
- MapResponse
- Or
- OrChain
- A type that can convert a collection of
Reactor
s into an ordered chain ofOr
combinators. - Respond
- Sample
Data Record - Builds a
Reactor
that samples a data record with aTimeMatrix
. - Then
- Then
Chain - A type that can convert a collection of
Reactor
s into an ordered chain ofThen
combinators. - With
State
Enums§
- Event
- An event that describes a change to the environment or the arrival of a data record.
- Suspend
Event - Describes entering and exiting a mode of suspended execution.
- System
Event - Describes a change to the environment that may require reconfiguration.
Traits§
- Into
Reactor - A type that can be converted into a
Reactor
. - Reactor
- A type that reacts to timed
Event
s. - Reactor
Ext - Extension methods for
Reactor
types.
Functions§
- and
- Reacts with the given reactors in order until the first error.
- fail
- filter_
map_ data_ record - map_
data_ record - map_
state - on_
data_ record - Constructs a
Reactor
that reacts to the data recordT
. - or
- Reacts with the given reactors in order until the first response.
- respond
- sample_
data_ record - Constructs a builder for a
Reactor
that samples a data record with aTimeMatrix
using the givenStatistic
. - then
- Reacts with the given reactors in order (regardless of outputs).
- with_
state