#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoSentinel
No sentinel byte marker could be found in the binary.
NoFuseVersion
No fuse version was found in the binary.
NoFuseLength
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.
UnknownFuse
An unknown fuse status was encountered.
The Electron project may have made a breaking change to the fuse format if this is returned.
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§
Source§impl Debug for BinaryError
impl Debug for BinaryError
Source§impl Display for BinaryError
impl Display for BinaryError
Source§impl Error for BinaryError
impl Error for BinaryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BinaryError> for PatcherError
impl From<BinaryError> for PatcherError
Source§fn from(e: BinaryError) -> Self
fn from(e: BinaryError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BinaryError
impl PartialEq for BinaryError
impl StructuralPartialEq for BinaryError
Auto Trait Implementations§
impl Freeze for BinaryError
impl RefUnwindSafe for BinaryError
impl Send for BinaryError
impl Sync for BinaryError
impl Unpin for BinaryError
impl UnwindSafe for BinaryError
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