Enum electron_hardener::fuses::Fuse [−][src]
#[non_exhaustive]
pub enum Fuse {
RunAsNode,
}Expand description
A representation of a fuse that Electron has built in. They are used to disable specific functionality in the application in a way that can be enforced via signature checks and codesigning at the OS level.
In the binary, fuses look like this:
| ...binary | sentinel_bytes | fuse_version | fuse_wire_length | fuse_wire | ...binary |
Refer to the Electron project’s fuse documentation for more details.
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.
Disables ELECTRON_RUN_AS_NODE functionality in the application.
Trait Implementations
impl Copy for Fuse[src]
impl Eq for Fuse[src]
impl StructuralEq for Fuse[src]
impl StructuralPartialEq for Fuse[src]
Auto Trait Implementations
impl RefUnwindSafe for Fuse
impl Send for Fuse
impl Sync for Fuse
impl Unpin for Fuse
impl UnwindSafe for Fuse
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
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more