Expand description
§MaidSafe Utilities
Rust utility functions provided by MaidSafe
.
Modules§
- event_
sender - Utilities related to event-subsetting.
- log
- Allows initialising the
env_logger
with a standard message format. These functions can initialise logging for output to stdout only, or to a file and stdout. For more fine-grained control, create a file calledlog.toml
in the root directory of the project, or in the same directory where the executable is. See log4rs docs for details about the format and structure of this file. - serialisation
- Functions for serialisation and deserialisation
- thread
- Utilities related to threading.
Macros§
- log_
or_ panic - This macro will panic with the given message if the “testing” feature is enabled and the calling thread is not already panicking, otherwise it will simply log an error message.
Structs§
- Seeded
Rng - A fast pseudorandom number generator for use in tests which allows seeding and prints the seed when the thread in which it is created panics.