mirror of https://github.com/aya-rs/aya
aya-log: Implement `AsFd` for `EbpfLogger`
This change implements the `AsFd` trait for the `EbpfLogger` struct. This allows obtaining a `BorrowedFd` from an `EbpfLogger` instance, which is safer than using `AsRawFd`. This improves the ergonomics of using `EbpfLogger` with APIs that accept file descriptors. Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>reviewable/pr1303/r1
parent
f635d80708
commit
653c7260a5
Loading…
Reference in New Issue