pub struct RingBuffer<'a> { /* private fields */ }
Expand description
The canonical interface for managing a collection of ringbuf
maps.
ringbuf
s are a special kind of Map
, used to transfer data between
Program
s and userspace. As of Linux 5.8, the ringbuf
map is now preferred over the perf buffer
.
Poll from all open ring buffers, calling the registered callback for
each one. Polls continually until we either run out of events to consume
or timeout
is reached. If timeout
is Duration::MAX, this will block
indefinitely until an event occurs.
Greedily consume from all open ring buffers, calling the registered
callback for each one. Consumes continually until we run out of events
to consume or one of the callbacks returns a non-zero integer.
Get an fd that can be used to sleep until data is available
Formats the value using the given formatter.
Read more
Executes the destructor for this type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.