#[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
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.
Binary(BinaryError)
A part of the provided binary’s contents was invalid.
FuseVersion
A different fuse schema version was found then what the library supports.
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§
Source§impl Debug for PatcherError
impl Debug for PatcherError
Source§impl Display for PatcherError
impl Display for PatcherError
Source§impl Error for PatcherError
impl Error for PatcherError
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 PatcherError
impl PartialEq for PatcherError
impl StructuralPartialEq for PatcherError
Auto Trait Implementations§
impl Freeze for PatcherError
impl RefUnwindSafe for PatcherError
impl Send for PatcherError
impl Sync for PatcherError
impl Unpin for PatcherError
impl UnwindSafe for PatcherError
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