Traits§
- Async
Error Handler Function - Trait alias for asynchronous error-handling functions used in a recoverable context.
- Async
Recoverable Function - Trait alias for asynchronous functions that can be executed in a recoverable context.
- Error
Handler Function - Trait alias for error-handling functions used in a recoverable context.
- Function
MutTrait - Trait alias for functions that can be executed in a recoverable context.
- Function
Once Trait - Trait alias for functions that can be executed in a recoverable context.
- Function
Trait - Trait alias for functions that can be executed in a recoverable context.
- Recoverable
Function - Trait alias for functions that can be executed in a recoverable context.
Functions§
- async_
recoverable_ spawn - Spawns a new thread to run the provided function
function
in a recoverable manner. If the functionfunction
panics during execution, the panic will be caught, and the thread will terminate without crashing the entire program. - async_
recoverable_ spawn_ catch - Spawns a recoverable function with an error-handling function in a new thread.
- async_
recoverable_ spawn_ catch_ finally - Spawns an asynchronous recoverable function, catches any errors with an error-handling function, and ensures that a final function is always executed, regardless of whether an error occurred.
- async_
run_ error_ handle_ function - Executes an error-handling function with a given error message within a panic-safe context.
- async_
run_ function - Executes a recoverable function within a panic-safe context.
- tokio_
error_ to_ string - Converts a panic-captured error value into a string.
Type Aliases§
- ArcAsync
Error Handler Function - Alias for an
Arc
-wrapped error handler function. - ArcAsync
Recoverable Function - Alias for an
Arc
-wrapped recoverable function. - Async
Spawn Result - Type alias for the result type returned by spawnable functions.
- Spawn
Error - SpawnError
- Sync
Spawn Result - Type alias for the result type returned by spawnable functions.