Module event

Module event 

Source
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 Reactors into an ordered chain of And combinators.
Context
DataEvent
Describes an arbitrary event with associated data of interest.
Fail
FilterMapDataRecord
Inspect
MapError
MapResponse
Or
OrChain
A type that can convert a collection of Reactors into an ordered chain of Or combinators.
Respond
SampleDataRecord
Builds a Reactor that samples a data record with a TimeMatrix.
Then
ThenChain
A type that can convert a collection of Reactors into an ordered chain of Then combinators.
WithState

Enums§

Event
An event that describes a change to the environment or the arrival of a data record.
SuspendEvent
Describes entering and exiting a mode of suspended execution.
SystemEvent
Describes a change to the environment that may require reconfiguration.

Traits§

IntoReactor
A type that can be converted into a Reactor.
Reactor
A type that reacts to timed Events.
ReactorExt
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 record T.
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 a TimeMatrix using the given Statistic.
then
Reacts with the given reactors in order (regardless of outputs).
with_state