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>main
parent
f635d80708
commit
44ec978bd3
Loading…
Reference in New Issue