[−][src]Crate sealrs
This library contains various useful abstractions used for construct of reactive and non-blocking asynchronous apps with high cpu-time utilisation. He contains few modules. Each module have it's own reach documentation. See concrete module for more info.
Modules
actors | Actor based asynchronous runtime |
common | Useful types and functions used in the library |
executors | Executors environment |
futures | Classic realization of Future / Promise paradigm |
testkit | A set of tools for testing code based on the library |
Macros
cast | Casts some Message to the specified type and call user function with this value. Macro may be used as extractor of data from a messages, because he may return values from itself based on the data from a message |
err | Wraps any data type to the message wrapper |
extended_type_matcher | Creates TestProbe matcher function which match specified message type and if is was success, apply specified user function to the result. |
in_state | Extract actor object from TestActorRef. This object is immutable and may be used for reversion of the internal actor's state. For use this macros, target actor must implement the as_any method from the Actor trait. Without satisfying this condition, macros will cause panic. |
matcher | Creates TestProbe matcher function from the user specified block of code |
msg | Wraps any data type to the message wrapper |
pat_matcher | Creates TestProbe matcher function which match specified message by match arm. Match arm must be specified without guards. |
test_case | Common testkit macros Print fmt info text of the test case |
tsafe | |
type_matcher | Creates TestProbe matcher function which match specified message type. |