pub struct TunnelListEntry {
pub token: u64,
pub tunnel_type: String,
pub public_port: u16,
pub key_name: String,
pub connected: bool,
pub pending_count: usize,
}Expand description
隧道列表条目,由 GET /api/v1/tunnels 返回。
Fields§
§token: u64隧道 token(序列化为字符串以避免 JavaScript 精度丢失)
tunnel_type: String隧道类型字符串
public_port: u16公网端口
key_name: String创建此隧道的 API key 名称
connected: bool客户端是否已连接(TCP signal 或 UDP data channel)
pending_count: usize待转发的挂起连接数
Trait Implementations§
Source§impl Debug for TunnelListEntry
impl Debug for TunnelListEntry
Source§impl<'de> Deserialize<'de> for TunnelListEntry
impl<'de> Deserialize<'de> for TunnelListEntry
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 TunnelListEntry
impl RefUnwindSafe for TunnelListEntry
impl Send for TunnelListEntry
impl Sync for TunnelListEntry
impl Unpin for TunnelListEntry
impl UnsafeUnpin for TunnelListEntry
impl UnwindSafe for TunnelListEntry
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