pub struct TunnelStatus {
pub id: String,
pub name: String,
pub status: String,
pub allowed_services: Vec<String>,
pub registered_services: Vec<RegisteredServiceInfo>,
pub created_at: u64,
pub expires_at: u64,
pub last_connected: Option<u64>,
pub client_addr: Option<String>,
pub active_connections: u32,
}Expand description
Detailed tunnel status
Fields§
§id: StringUnique tunnel identifier
name: StringName of the tunnel
status: StringCurrent status (active, disconnected, expired)
allowed_services: Vec<String>Services this tunnel can expose
registered_services: Vec<RegisteredServiceInfo>Currently registered services
created_at: u64When the tunnel was created (Unix timestamp)
expires_at: u64When the token expires (Unix timestamp)
last_connected: Option<u64>Last time the tunnel connected (Unix timestamp, if ever)
client_addr: Option<String>Client IP address (if connected)
active_connections: u32Number of active connections
Trait Implementations§
Source§impl ComposeSchema for TunnelStatus
impl ComposeSchema for TunnelStatus
Source§impl Debug for TunnelStatus
impl Debug for TunnelStatus
Source§impl<'de> Deserialize<'de> for TunnelStatus
impl<'de> Deserialize<'de> for TunnelStatus
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
Source§impl Serialize for TunnelStatus
impl Serialize for TunnelStatus
Auto Trait Implementations§
impl Freeze for TunnelStatus
impl RefUnwindSafe for TunnelStatus
impl Send for TunnelStatus
impl Sync for TunnelStatus
impl Unpin for TunnelStatus
impl UnsafeUnpin for TunnelStatus
impl UnwindSafe for TunnelStatus
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