pub enum Target {
Elf(ElfBinary),
Pe(PeBinary),
MachO(MachOBinary),
Universal(UniversalBinary),
Raw(RawBinary),
}Expand description
The shared request layer, re-exported so that rf_cli::ScanRequest and
rf_api::ScanRequest stay one type and every existing use rf_cli::…
keeps compiling. The definitions live in rf-api.
A loaded binary before it is flattened into a scan view.
Variants§
Elf(ElfBinary)
An ELF image.
Pe(PeBinary)
A PE/COFF image.
MachO(MachOBinary)
A single-architecture Mach-O image.
Universal(UniversalBinary)
A fat (Universal) Mach-O container; pick a slice with
resolve_arch before scanning.
Raw(RawBinary)
A flat blob loaded with an explicit architecture.
Trait Implementations§
Source§impl From<LoadedBinary> for Target
impl From<LoadedBinary> for Target
Source§fn from(l: LoadedBinary) -> Target
fn from(l: LoadedBinary) -> Target
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more