aya-log: add `#[must_use]` attribute to `EbpfLogger`

reviewable/pr1350/r1
Thomas Eizinger 3 weeks ago
parent 30182463bd
commit 14445f6a10
No known key found for this signature in database
GPG Key ID: 05633CD77196CAF3

@ -95,6 +95,7 @@ unsafe impl Pod for DisplayHintWrapper {}
/// Log messages generated by `aya_log_ebpf` using the [log] crate.
///
/// For more details see the [module level documentation](crate).
#[must_use = "The logger needs to be continuously flushed to actually receive log messages in userspace."]
pub struct EbpfLogger<T> {
ring_buf: RingBuf<MapData>,
logger: T,

Loading…
Cancel
Save