Enum electron_hardener::PatcherError [−][src]
#[non_exhaustive]
pub enum PatcherError {
Binary(BinaryError),
FuseVersion {
expected: u8,
found: u8,
},
RemovedFuse(Fuse),
}Expand description
An error that can result from parsing an Electron binary and attempting to modify it.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Binary(BinaryError)A part of the provided binary’s contents was invalid.
A different fuse schema version was found then what the library supports.
Show fields
RemovedFuse(Fuse)An attempt was made to modify a fuse which has been removed from the Electron schema.
This is an error because modifying a removed fuse has no effect, so this may lead to unexpected behavior.
Trait Implementations
impl Debug for PatcherError[src]
impl Debug for PatcherError[src]impl Display for PatcherError[src]
impl Display for PatcherError[src]impl Error for PatcherError[src]
impl Error for PatcherError[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<PatcherError> for PatcherError[src]
impl PartialEq<PatcherError> for PatcherError[src]fn eq(&self, other: &PatcherError) -> bool[src]
fn eq(&self, other: &PatcherError) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &PatcherError) -> bool[src]
fn ne(&self, other: &PatcherError) -> bool[src]This method tests for !=.
impl StructuralPartialEq for PatcherError[src]
Auto Trait Implementations
impl RefUnwindSafe for PatcherError
impl Send for PatcherError
impl Sync for PatcherError
impl Unpin for PatcherError
impl UnwindSafe for PatcherError
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