pub(super) struct Phase1Out {
pub(super) _audit_guard: Option<WorkerGuard>,
pub(super) shared_counters: Arc<RuntimeCounters>,
pub(super) listen_addr: String,
pub(super) rest_keys_file: Option<PathBuf>,
pub(super) ws_keys_file: Option<PathBuf>,
pub(super) grpc_keys_file: Option<PathBuf>,
pub(super) allow_tcp_unauthenticated: bool,
}Expand description
Phase 1 output — 必须由 caller 持有到进程退出, 否则 audit guard drop 会让 tracing-appender 后台线程提早关闭丢事件.
Fields§
§_audit_guard: Option<WorkerGuard>audit 日志 guard, drop = tracing-appender 关闭. caller 必须 outlive.
共享 RuntimeCounters (REST + gRPC 共用一份保证跨 surface rate window 一致).
listen_addr: String“ip:port” 字符串, 后续 server / WS / REST / gRPC / telnet 复用.
rest_keys_file: Option<PathBuf>从 config 复制的 keys file 路径 (Phase 4 使用).
ws_keys_file: Option<PathBuf>§grpc_keys_file: Option<PathBuf>§allow_tcp_unauthenticated: bool是否允许无 auth 的 TCP listener (Phase 4 决策).
Auto Trait Implementations§
impl Freeze for Phase1Out
impl !RefUnwindSafe for Phase1Out
impl Send for Phase1Out
impl Sync for Phase1Out
impl Unpin for Phase1Out
impl UnsafeUnpin for Phase1Out
impl !UnwindSafe for Phase1Out
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].