pub enum FileKind {
Elf64(ElfInfo),
Elf32(ElfInfo),
Shebang(Vec<u8>),
Other,
}Expand description
Classification of the first bytes of an executable file.
Variants§
Elf64(ElfInfo)
A 64-bit ELF file.
Elf32(ElfInfo)
A 32-bit ELF file.
Shebang(Vec<u8>)
A #! script; the payload is the first line without the #!.
Other
Anything else; the kernel will refuse it with ENOEXEC.
Trait Implementations§
impl Eq for FileKind
impl StructuralPartialEq for FileKind
Auto Trait Implementations§
impl Freeze for FileKind
impl RefUnwindSafe for FileKind
impl Send for FileKind
impl Sync for FileKind
impl Unpin for FileKind
impl UnsafeUnpin for FileKind
impl UnwindSafe for FileKind
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