pub struct LuaRuntimeSpaceControllerOptions {
pub endpoint: Option<String>,
pub auto_spawn: bool,
pub executable_path: Option<PathBuf>,
pub process_mode: LuaRuntimeSpaceControllerProcessMode,
pub minimum_uptime_secs: u64,
pub idle_timeout_secs: u64,
pub default_lease_ttl_secs: u64,
pub connect_timeout_secs: u64,
pub startup_timeout_secs: u64,
pub startup_retry_interval_ms: u64,
pub lease_renew_interval_secs: u64,
}Expand description
Host-provided controller client options used when one database backend chooses space_controller.
当数据库后端选择 space_controller 时使用的宿主侧控制器客户端选项。
Fields§
§endpoint: Option<String>Optional explicit controller endpoint; when omitted the shared default endpoint is used. 可选的显式控制器端点;缺失时使用共享默认端点。
auto_spawn: boolWhether the runtime may auto-spawn the controller when the endpoint is unavailable. 当控制器端点不可用时,运行时是否允许自动唤起控制器。
executable_path: Option<PathBuf>Optional local executable path copied and managed by the host. 由宿主复制并管理的可选本地可执行文件路径。
process_mode: LuaRuntimeSpaceControllerProcessModeProcess mode used when auto-spawning one controller process. 自动唤起控制器进程时使用的进程模式。
minimum_uptime_secs: u64Minimum uptime in seconds passed to one auto-spawned controller. 传递给自动唤起控制器的最小存活秒数。
idle_timeout_secs: u64Idle timeout in seconds passed to one auto-spawned controller. 传递给自动唤起控制器的空闲超时秒数。
default_lease_ttl_secs: u64Default lease TTL in seconds passed to one auto-spawned controller. 传递给自动唤起控制器的默认租约 TTL 秒数。
connect_timeout_secs: u64Transport connect timeout in seconds used by the controller client proxy. 控制器客户端代理使用的传输连接超时秒数。
startup_timeout_secs: u64Startup timeout in seconds used while waiting for one spawned controller to become ready. 等待已唤起控制器就绪时使用的启动超时秒数。
startup_retry_interval_ms: u64Startup retry interval in milliseconds used while polling one spawned controller. 轮询已唤起控制器时使用的启动重试间隔毫秒数。
lease_renew_interval_secs: u64Lease renew interval in seconds used by the background controller client task. 后台控制器客户端任务使用的租约续约间隔秒数。
Trait Implementations§
Source§impl Clone for LuaRuntimeSpaceControllerOptions
impl Clone for LuaRuntimeSpaceControllerOptions
Source§fn clone(&self) -> LuaRuntimeSpaceControllerOptions
fn clone(&self) -> LuaRuntimeSpaceControllerOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for LuaRuntimeSpaceControllerOptions
impl<'de> Deserialize<'de> for LuaRuntimeSpaceControllerOptions
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>,
Source§impl PartialEq for LuaRuntimeSpaceControllerOptions
impl PartialEq for LuaRuntimeSpaceControllerOptions
Source§fn eq(&self, other: &LuaRuntimeSpaceControllerOptions) -> bool
fn eq(&self, other: &LuaRuntimeSpaceControllerOptions) -> bool
self and other values to be equal, and is used by ==.impl Eq for LuaRuntimeSpaceControllerOptions
impl StructuralPartialEq for LuaRuntimeSpaceControllerOptions
Auto Trait Implementations§
impl Freeze for LuaRuntimeSpaceControllerOptions
impl RefUnwindSafe for LuaRuntimeSpaceControllerOptions
impl Send for LuaRuntimeSpaceControllerOptions
impl Sync for LuaRuntimeSpaceControllerOptions
impl Unpin for LuaRuntimeSpaceControllerOptions
impl UnsafeUnpin for LuaRuntimeSpaceControllerOptions
impl UnwindSafe for LuaRuntimeSpaceControllerOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request