Crate score [] [src]

Reexports

pub use component::*;
pub use components::*;
pub use config::*;
pub use effector::*;
pub use event::*;
pub use logging::*;
pub use ports::*;
pub use simulation::*;
pub use sim_state::*;
pub use sim_time::*;
pub use store::*;
pub use thread_data::*;
pub use values::*;

Modules

component
components
config
effector
event
logging
ports

Ports are simple wrappers around [Event] sending. They don't do very much but they assist in creating type safe [Component] structs. See the [connect] macro for an example.

sim_state
sim_time
simulation
store
thread_data
values

IntValue and FloatValue and StringValue are simple wrappers around an [Effector]. They don't do very much but they assist in creating type safe [Component] structs. See the [set_value] macro for an example.

Macros

log_at

Generic macro that calls the Effector log method. More often you'll use one of the other macros like log_info!.

log_debug
log_error
log_excessive
log_info
log_warning
process_events

Typically Component threads will use this to cut down on the boiler plate involved in processing dispatched Events. Note that this will panic if it tries to process an event that doesn't have an associated code block.

set_value

Type safe way to update the simulation [Store].