pub struct RunnerConfig {
pub max_cpu_cores: f64,
pub max_memory_mb: u64,
pub max_timeout_secs: u64,
pub max_output_bytes: u64,
pub max_source_bytes: u64,
pub allow_network: bool,
pub max_concurrent: usize,
pub queue_timeout_secs: u64,
pub task_ttl_secs: u64,
pub docker_socket_path: String,
pub languages: Option<Vec<String>>,
}Fields§
§max_cpu_cores: f64§max_memory_mb: u64§max_timeout_secs: u64§max_output_bytes: u64§max_source_bytes: u64§allow_network: bool§max_concurrent: usize§queue_timeout_secs: u64§task_ttl_secs: u64§docker_socket_path: String§languages: Option<Vec<String>>语言白名单。None 表示不限制——注册表里的所有语言均视为支持;
Some(list) 表示收窄到列表内(仍须同时在 LANGUAGES 注册表存在)。
Auto Trait Implementations§
impl Freeze for RunnerConfig
impl RefUnwindSafe for RunnerConfig
impl Send for RunnerConfig
impl Sync for RunnerConfig
impl Unpin for RunnerConfig
impl UnsafeUnpin for RunnerConfig
impl UnwindSafe for RunnerConfig
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
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.