pub struct ProxyStatus {Show 18 fields
pub running: bool,
pub address: String,
pub port: u16,
pub active_connections: usize,
pub total_requests: u64,
pub estimated_input_tokens_total: u64,
pub estimated_output_tokens_total: u64,
pub success_requests: u64,
pub failed_requests: u64,
pub success_rate: f32,
pub uptime_seconds: u64,
pub current_provider: Option<String>,
pub current_provider_id: Option<String>,
pub last_request_at: Option<String>,
pub last_error: Option<String>,
pub failover_count: u64,
pub managed_session_token: Option<String>,
pub active_targets: Vec<ActiveTarget>,
}Expand description
代理服务器状态
Fields§
§running: bool是否运行中
address: String监听地址
port: u16监听端口
active_connections: usize活跃连接数
total_requests: u64总请求数
estimated_input_tokens_total: u64估算的输入 token 总量
estimated_output_tokens_total: u64估算的输出 token 总量
success_requests: u64成功请求数
failed_requests: u64失败请求数
success_rate: f32成功率 (0-100)
uptime_seconds: u64运行时间(秒)
current_provider: Option<String>当前使用的Provider名称
current_provider_id: Option<String>当前Provider的ID
last_request_at: Option<String>最后一次请求时间
last_error: Option<String>最后一次错误信息
failover_count: u64Provider故障转移次数
managed_session_token: Option<String>managed external session 身份令牌
active_targets: Vec<ActiveTarget>当前活跃的代理目标列表
Trait Implementations§
Source§impl Clone for ProxyStatus
impl Clone for ProxyStatus
Source§fn clone(&self) -> ProxyStatus
fn clone(&self) -> ProxyStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProxyStatus
impl Debug for ProxyStatus
Source§impl Default for ProxyStatus
impl Default for ProxyStatus
Source§fn default() -> ProxyStatus
fn default() -> ProxyStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProxyStatus
impl<'de> Deserialize<'de> for ProxyStatus
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 Freeze for ProxyStatus
impl RefUnwindSafe for ProxyStatus
impl Send for ProxyStatus
impl Sync for ProxyStatus
impl Unpin for ProxyStatus
impl UnsafeUnpin for ProxyStatus
impl UnwindSafe for ProxyStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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