Struct electron_hardener::ElectronApp [−][src]
pub struct ElectronApp<'a> { /* fields omitted */ }Expand description
An Electron application binary.
Implementations
impl<'a> ElectronApp<'a>[src]
impl<'a> ElectronApp<'a>[src]pub fn from_bytes(
application_bytes: &'a mut [u8]
) -> Result<ElectronApp<'a>, PatcherError>[src]
pub fn from_bytes(
application_bytes: &'a mut [u8]
) -> Result<ElectronApp<'a>, PatcherError>[src]Constructs a new electron app and verifies that the bytes came from a packaged Electron app binary file.
Errors
This function returns an error if the bytes couldn’t be validated to contain an Electron application.
pub fn get_fuse_status(&self, fuse: Fuse) -> Result<FuseStatus, PatcherError>[src]
pub fn get_fuse_status(&self, fuse: Fuse) -> Result<FuseStatus, PatcherError>[src]Parses and returns this fuse type’s status in the provided binary.
Return
Returns the current fuse status. This will not return a modification result.
Errors
This function will return an error if an invalid binary is provided or one that is not an Electron application.
pub fn set_fuse_status(
&mut self,
fuse: Fuse,
enabled: bool
) -> Result<FuseStatus, PatcherError>[src]
pub fn set_fuse_status(
&mut self,
fuse: Fuse,
enabled: bool
) -> Result<FuseStatus, PatcherError>[src]impl ElectronApp<'_>[src]
impl ElectronApp<'_>[src]pub fn patch_option<P: Patchable>(
&mut self,
to_disable: P
) -> Result<(), PatcherError>[src]
pub fn patch_option<P: Patchable>(
&mut self,
to_disable: P
) -> Result<(), PatcherError>[src]Disables the ability to use this command line flag in the application.
After being disabled, the flag will no longer be processed by the application. The removal is a best-effort attempt. See the crate documentation on effectiveness.