pub struct ExecutionConfig {
pub allowlist: Vec<String>,
}Expand description
Execution allowlist configuration for remote builds (bd-785w).
Controls which command base names are permitted for remote execution. Commands not in the allowlist will fail-open to local execution.
Fields§
§allowlist: Vec<String>Allowlist of command base names permitted for remote execution.
Examples: “cargo”, “rustc”, “gcc”, “bun”
If a classified compilation command’s base name is not in this list, RCH will fail-open to local execution with a clear reason.
An empty allowlist disables all remote execution (local only).
Implementations§
Source§impl ExecutionConfig
impl ExecutionConfig
Sourcepub fn is_allowed(&self, command_base: &str) -> bool
pub fn is_allowed(&self, command_base: &str) -> bool
Check if a command base name is allowed for remote execution.
Trait Implementations§
Source§impl Clone for ExecutionConfig
impl Clone for ExecutionConfig
Source§fn clone(&self) -> ExecutionConfig
fn clone(&self) -> ExecutionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionConfig
impl Debug for ExecutionConfig
Source§impl Default for ExecutionConfig
impl Default for ExecutionConfig
Source§impl<'de> Deserialize<'de> for ExecutionConfig
impl<'de> Deserialize<'de> for ExecutionConfig
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
Auto Trait Implementations§
impl Freeze for ExecutionConfig
impl RefUnwindSafe for ExecutionConfig
impl Send for ExecutionConfig
impl Sync for ExecutionConfig
impl Unpin for ExecutionConfig
impl UnsafeUnpin for ExecutionConfig
impl UnwindSafe for ExecutionConfig
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