Pull-based reader for extracting structured logs via RAII transactions. Natively supports the reloco/rust functional iterator pipeline.
More...
#include <ring_buffer_sink_protocol_sink.hpp>
|
| constexpr | ring_buffer_log_reader (reloco::detail::unowned_ring_base< char > &ring RELOCO_LIFETIMEBOUND RELOCO_LIFETIME_CAPTURE_BY_THIS) noexcept |
| |
| reloco::optional< log_record_tx > | try_read () &noexcept |
| | Attempts to extract the next log frame.
|
| |
| reloco::optional< log_record_tx > | next_impl () noexcept |
| | The magic hook that fuels the reloco::iterator_adaptor pipeline!
|
| |
Pull-based reader for extracting structured logs via RAII transactions. Natively supports the reloco/rust functional iterator pipeline.
◆ item_type
◆ ring_buffer_log_reader()
| constexpr microfmt::log::ring_buffer_log_reader::ring_buffer_log_reader |
( |
reloco::detail::unowned_ring_base< char > &ring RELOCO_LIFETIMEBOUND |
RELOCO_LIFETIME_CAPTURE_BY_THIS | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ next_impl()
| reloco::optional< log_record_tx > microfmt::log::ring_buffer_log_reader::next_impl |
( |
| ) |
|
|
inlinenoexcept |
The magic hook that fuels the reloco::iterator_adaptor pipeline!
◆ try_read()
| reloco::optional< log_record_tx > microfmt::log::ring_buffer_log_reader::try_read |
( |
| ) |
& |
|
inlinenoexcept |
Attempts to extract the next log frame.
- Returns
- A valid log_record_tx if a frame exists, or an empty/false transaction if empty.
The documentation for this class was generated from the following file: