pub struct VmlinuxBtfDump { /* private fields */ }Expand description
Load vmlinux from file and generate vmlinux.h
Implementations§
Source§impl VmlinuxBtfDump
impl VmlinuxBtfDump
Sourcepub fn with_system_default() -> Result<Self, TypeGenError>
pub fn with_system_default() -> Result<Self, TypeGenError>
Probe few well-known locations for vmlinux kernel image and try to load BTF data out of it
Sourcepub fn with_elf_file(elf_file: impl AsRef<Path>) -> Result<Self, TypeGenError>
pub fn with_elf_file(elf_file: impl AsRef<Path>) -> Result<Self, TypeGenError>
Read the ELF file and parse BTF data out of the given ELF file
Sourcepub fn with_raw_file(raw: impl AsRef<Path>) -> Result<Self, TypeGenError>
pub fn with_raw_file(raw: impl AsRef<Path>) -> Result<Self, TypeGenError>
Parse BTF data from a file containing raw BTF data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VmlinuxBtfDump
impl RefUnwindSafe for VmlinuxBtfDump
impl !Send for VmlinuxBtfDump
impl !Sync for VmlinuxBtfDump
impl Unpin for VmlinuxBtfDump
impl UnwindSafe for VmlinuxBtfDump
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more