pub enum Execution {
BuildScript,
ProcMacro,
Configure,
CompilerWrapper,
GeneratedSource,
}Expand description
Something a helper may be permitted to run out of the project it is analyzing.
Named per class rather than as one switch, for the reason the tool’s own permissions are: expanding a macro the project’s developers already run and executing a configure step that may reach the network are decisions of different weight, and a single permission would make agreeing to either mean agreeing to both.
Variants§
BuildScript
A Cargo build script.
ProcMacro
A procedural macro, expanded by compiling and calling it.
Configure
A configure step: CMake, autotools, or a generator script.
CompilerWrapper
A compiler wrapper the project interposes.
GeneratedSource
A command that generates source files.
Implementations§
Trait Implementations§
impl Copy for Execution
Source§impl<'de> Deserialize<'de> for Execution
impl<'de> Deserialize<'de> for Execution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Execution
Source§impl Ord for Execution
impl Ord for Execution
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Execution
impl PartialOrd for Execution
impl StructuralPartialEq for Execution
Auto Trait Implementations§
impl Freeze for Execution
impl RefUnwindSafe for Execution
impl Send for Execution
impl Sync for Execution
impl Unpin for Execution
impl UnsafeUnpin for Execution
impl UnwindSafe for Execution
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