pub struct Binary {
pub path: PathBuf,
pub arch: Architecture,
pub name: Option<Vec<u8>>,
pub info_plist_data: Option<Vec<u8>>,
pub entitlements_data: Option<Vec<u8>>,
pub signed: bool,
pub gui_like: bool,
/* private fields */
}Expand description
Extracted information about a binary.
Fields§
§path: PathBufThe path to the binary.
arch: ArchitectureThe architecture of the binary.
name: Option<Vec<u8>>LC_ID_DYLIB.
info_plist_data: Option<Vec<u8>>Embedded __TEXT,__info_plist contents, if any.
See the embed_plist crate for how to insert this.
entitlements_data: Option<Vec<u8>>Embedded __TEXT,__entitlements contents, if any.
See the embed_entitlements crate for how to insert this.
signed: boolWhether the binary is already (likely ad-hoc) signed.
gui_like: boolWhether the application should be launched instead of simply spawned.
This is set if:
- The binary links AppKit, UIKit, WatchKit or similar UI frameworks.
- TODO: Others? Maybe if linking
UIApplicationMainorNSApp? Or maybe there’s further libraries that expect this?
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Binary
impl RefUnwindSafe for Binary
impl Send for Binary
impl Sync for Binary
impl Unpin for Binary
impl UnsafeUnpin for Binary
impl UnwindSafe for Binary
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