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
Err
containing a newfail::Error
from format args. - fail_
err - Creates a new
fail::Error
from format args. - fail_
when - Returns a
fail::Error
if a condition istrue
. - fail_
wrap - Returns a closure for using
Result::map_err
to 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
async
function to return aBox<dyn Future + Send>
. - future_
boxed_ local - Modifies an
async
function to return aBox<dyn Future>
. - main
- Defines an async main function for an
af-core
application. - test_
main - Defines a main function for an
af_core::test
suite.