Crate sodium_rust

Source
Expand description

Sodium is a library for doing Functional Reactive Programming (FRP) in Rust.

Structs§

Cell
Represents a value of type A that changes over time.
CellLoop
A forward reference for a Cell for creating dependency loops.
CellSink
A Cell that allows values to be pushed into it, acting as a interface between the world of I/O and the world of FRP.
Lazy
A representation for a value that may not be available until the current transaction is closed.
Listener
A handle for a listener registered on some Cell or Stream.
Operational
Operational primitives that must be used with care because they break non-detectability of Cell steps/updates.
Router
Create a new Router that routes event items of type A to zero or more Streams of type K according to a given selector function.
SodiumCtx
A context object representing a specific instance of a Sodium system.
Stream
Represents a stream of discrete events/firings containing values of type A.
StreamLoop
A forward reference of a Stream for creating dependency loops.
StreamSink
A Stream that allows values to be pushed into it, acting as an interface between the world of I/O and the world of FRP.
Transaction
A scoped transaction marker.

Traits§

IsLambda1
Interface for a lambda function of one argument.
IsLambda2
Interface for a lambda function of two arguments.
IsLambda3
Interface for a lambda function of three arguments.
IsLambda4
Interface for a lambda function of four arguments.
IsLambda5
Interface for a lambda function of five arguments.
IsLambda6
Interface for a lambda function of six arguments.