Expand description
Macros for af-core.
Macros§
- attempt
- Runs a block of code and catches
?operator returns. - attempt_
async - Runs a block of async code and catches
?operator returns. - fail
- Returns an
Errcontaining a newfail::Errorfrom format args. - fail_
err - Creates a new
fail::Errorfrom format args. - fail_
when - Returns a
fail::Errorif a condition istrue. - fail_
wrap - Returns a closure for using
Result::map_errto wrap an error in afail::Error. - logger_
init - Initializes
af_runtime::logger. - path_
join - Joins multiple paths together.
- path_
normalize - Joins multiple paths together and then normalizes the result.
- path_
resolve - Joins multiple paths together and then resolves the result.
- test
Attribute Macros§
- future_
boxed - Modifies an
asyncfunction to return aBox<dyn Future + Send>. - future_
boxed_ local - Modifies an
asyncfunction to return aBox<dyn Future>. - main
- Defines an async main function for an
af-coreapplication. - test_
main - Defines a main function for an
af_core::testsuite.