pub struct Config {
pub python: Option<String>,
pub script: Option<PathBuf>,
pub bundle: Option<String>,
pub args: Option<Vec<String>>,
pub invoke_timeout_ms: Option<u64>,
pub shutdown_timeout_ms: Option<u64>,
pub restart_on_crash: Option<bool>,
}Expand description
Fields§
§python: Option<String>Python 解释器,见 Builder::python。
script: Option<PathBuf>Python 入口脚本;相对路径的解析规则见 Builder::script。
bundle: Option<String>Nuitka 打包产物名,见 Builder::bundle。
args: Option<Vec<String>>追加在脚本路径(或打包产物)之后的命令行参数。
invoke_timeout_ms: Option<u64>每次调用的默认超时(毫秒),见 Builder::invoke_timeout。
shutdown_timeout_ms: Option<u64>关闭超时(毫秒),见 Builder::shutdown_timeout。
restart_on_crash: Option<bool>崩溃后是否自动重启,见 Builder::restart_on_crash。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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