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) rest_key_store: Option<Arc<KeyStore>>,
pub(super) rest_transport: RestTransport,
pub(super) ws_keys_file: Option<PathBuf>,
pub(super) ws_key_store: Option<Arc<KeyStore>>,
pub(super) grpc_keys_file: Option<PathBuf>,
pub(super) grpc_key_store: Option<Arc<KeyStore>>,
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 使用).
rest_key_store: Option<Arc<KeyStore>>§rest_transport: RestTransport§ws_keys_file: Option<PathBuf>§ws_key_store: Option<Arc<KeyStore>>§grpc_keys_file: Option<PathBuf>§grpc_key_store: Option<Arc<KeyStore>>§allow_tcp_unauthenticated: bool是否允许无 auth 的 TCP listener (Phase 4 决策).
Auto Trait Implementations§
impl !RefUnwindSafe for Phase1Out
impl !UnwindSafe for Phase1Out
impl Freeze for Phase1Out
impl Send for Phase1Out
impl Sync for Phase1Out
impl Unpin for Phase1Out
impl UnsafeUnpin 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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>
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>
Converts
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>
Converts
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 more§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].