pub struct TunnelClosedInput<'a> {
pub vps: &'a str,
pub reason: TunnelCloseReason,
pub bind: &'a str,
pub local_port: u16,
pub forwards_served: u64,
pub capacity_waits: u64,
pub duration_ms: u64,
pub mode: &'a str,
}Expand description
Inputs for build_tunnel_closed.
B3: three of the eight fields are bare u64 counters and one is a u16
port. Passed positionally, swapping forwards_served with capacity_waits
compiles and produces a plausible-looking event that misreports the tunnel’s
lifetime — the exact class of silent wrongness the suppressed
too_many_arguments lint was pointing at.
Fields§
§vps: &'a strRegistry name of the relay host.
reason: TunnelCloseReasonWhy the tunnel stopped.
bind: &'a strEffective local bind address.
local_port: u16Effective local port (OS-assigned when 0 was requested).
forwards_served: u64Connections accepted over the tunnel’s lifetime.
capacity_waits: u64Times an accept waited on the concurrency semaphore.
duration_ms: u64Wall lifetime in milliseconds.
mode: &'a strTunnel mode label (local, reverse, socks5, streamlocal).
Auto Trait Implementations§
impl<'a> Freeze for TunnelClosedInput<'a>
impl<'a> RefUnwindSafe for TunnelClosedInput<'a>
impl<'a> Send for TunnelClosedInput<'a>
impl<'a> Sync for TunnelClosedInput<'a>
impl<'a> Unpin for TunnelClosedInput<'a>
impl<'a> UnsafeUnpin for TunnelClosedInput<'a>
impl<'a> UnwindSafe for TunnelClosedInput<'a>
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