Application‐agnostic logging interface shared across Bitcoin Core.
Namespaces
Name |
Description |
Application‐agnostic logging interface shared across Bitcoin Core. |
Types
Name |
Description |
Exception thrown when the value of an errored util::Expected is accessed. |
|
Compile‐time bilingual format string carrying a checked format and its translatable literal. |
|
A wrapper for a compile‐time partially validated format string |
|
Wraps a failure message used to construct a util::Result in the error state. |
|
The util::Expected class provides a standard way for low‐level functions to return either error values or result values. |
|
Task runner that processes each callback synchronously on insertion. |
|
Reads a character buffer line by line or in fixed‐length chunks. |
|
Overloaded helper for std::visit. This helper and std::visit in general are useful to write code that switches on a variant type. Unlike if/else‐if and switch/case statements, std::visit will trigger compile errors if there are unhandled cases. |
|
The util::Result class provides a standard way for functions to return either error messages or result values. |
|
Helper class that manages an interrupt flag, and allows a thread or signal to interrupt another thread. |
|
This header provides an interface and simple implementation for a task runner. Another threaded, serial implementation using a queue is available in the scheduler module's SerialTaskRunner. |
|
A token bucket rate limiter. |
|
Compile‐time literal string that can be translated with an optional translation function. |
|
The util::Unexpected class represents an unexpected value stored in util::Expected. |
Enums
Name |
Description |
Outcome of trying to acquire a directory lock. |
Functions
Name |
Description |
Helper function to access the contained object of a std::any instance. Returns a pointer to the object if passed instance has a value and the type matches, nullptr otherwise. |
|
consteval version of HexDigit() without the lookup table. |
|
Check if a string does not contain any embedded NUL (0) characters |
|
Extracts the error message from a result. |
|
Cross‐platform wrapper for POSIX execvp function. Arguments and return value are the same as for POSIX execvp, and the argv array should consist of null terminated strings and be null terminated itself, like the POSIX function. |
|
Return path to current executable assuming it was invoked with argv0. If path could not be determined, returns an empty path. |
|
Check whether a container begins with the given prefix. |
|
|
|
Acquire an exclusive lock on a directory via a lock file. |
|
Create an unordered multi‐line list of items. |
|
Return a copy of str with the given prefix removed, if present. |
|
Return a view of str with the given prefix removed, if present. |
|
Return a view of str with the given suffix removed, if present. |
|
Replace every occurrence of a substring in place. |
|
|
|
|
|
Get the thread's internal (in‐memory) name; used e.g. for identification in logging. |
|
Rename a thread both in terms of an internal (in‐memory) name as well as its system thread name. |
|
Set the internal (in‐memory) name of the current thread only. |
|
Locale‐independent version of std::to_string |
|
A wrapper for do‐something‐once thread functions. |
|
Return a copy of str with leading and trailing pattern characters removed. |
|
Return a view of str with leading and trailing pattern characters removed. |
|
|
|
Compile‐time hex literal returning a |
|
Compile‐time hex literal returning a |
|
Compile‐time hex literal returning a |
|
Compile‐time hex literal returning a |
|
Addition operators |
|
Write the translated form of a literal to an output stream. |
Created with MrDocs