Enum electron_hardener::BinaryError [−][src]
#[non_exhaustive]
pub enum BinaryError {
NoSentinel,
NoFuseVersion,
NoFuseLength,
FuseDoesNotExist(Fuse),
UnknownFuse {
fuse: Fuse,
value: u8,
},
NodeJsFlagNotPresent(NodeJsCommandLineFlag),
ElectronOptionNotPresent(ElectronOption),
MessageNotPresent(DevToolsMessage),
}Expand description
An error that the provided binary didn’t contain the required information for an operation on it.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
No sentinel byte marker could be found in the binary.
No fuse version was found in the binary.
The length of the fuse was not found in the binary.
FuseDoesNotExist(Fuse)The requested fuse to be modifed wasn’t present in the fuse wire.
An unknown fuse status was encountered.
The Electron project may have made a breaking change to the fuse format if this is returned.
Show fields
NodeJsFlagNotPresent(NodeJsCommandLineFlag)The Node.JS command line flag attempted to be disabled wasn’t present.
ElectronOptionNotPresent(ElectronOption)The Electron command line flag attempted to be disabled wasn’t present.
MessageNotPresent(DevToolsMessage)The Node.JS debugging message attempted to be disabled wasn’t present.
Trait Implementations
impl Debug for BinaryError[src]
impl Debug for BinaryError[src]impl Display for BinaryError[src]
impl Display for BinaryError[src]impl Error for BinaryError[src]
impl Error for BinaryError[src]fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]use the Display impl or to_string()
impl From<BinaryError> for PatcherError[src]
impl From<BinaryError> for PatcherError[src]fn from(e: BinaryError) -> Self[src]
fn from(e: BinaryError) -> Self[src]Performs the conversion.
impl PartialEq<BinaryError> for BinaryError[src]
impl PartialEq<BinaryError> for BinaryError[src]fn eq(&self, other: &BinaryError) -> bool[src]
fn eq(&self, other: &BinaryError) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &BinaryError) -> bool[src]
fn ne(&self, other: &BinaryError) -> bool[src]This method tests for !=.
impl StructuralPartialEq for BinaryError[src]
Auto Trait Implementations
impl RefUnwindSafe for BinaryError
impl Send for BinaryError
impl Sync for BinaryError
impl Unpin for BinaryError
impl UnwindSafe for BinaryError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more