pub struct TunnelRequest {
pub vps_name: String,
pub local_port: u16,
pub mode: TunnelMode,
pub config_override: Option<PathBuf>,
pub auth: TunnelAuth,
pub timeout_ms: u64,
pub replace_host_key: bool,
pub json: bool,
pub bind_addr: String,
pub accept_network_exposure: bool,
}Expand description
Everything one tunnel invocation needs.
Grouped into a struct rather than passed as fifteen positional arguments:
with that many u16/bool/Option<String> parameters in a row, a
transposition compiles cleanly and only shows up as a tunnel pointing
somewhere unintended.
Fields§
§vps_name: StringRegistry name of the host.
local_port: u16Local port to bind (0 = ephemeral) — for reverse, the local target port.
mode: TunnelModeTunnel mode.
config_override: Option<PathBuf>Alternate config directory.
auth: TunnelAuthCredential overrides.
timeout_ms: u64Mandatory deadline in milliseconds.
replace_host_key: boolReplace a diverging host key in TOFU known_hosts.
json: boolAgent-first JSON output.
bind_addr: StringLocal bind address (ignored in reverse mode, where the server binds).
accept_network_exposure: boolExplicit acknowledgement that a routable bind exposes the service.
Auto Trait Implementations§
impl Freeze for TunnelRequest
impl RefUnwindSafe for TunnelRequest
impl Send for TunnelRequest
impl Sync for TunnelRequest
impl Unpin for TunnelRequest
impl UnsafeUnpin for TunnelRequest
impl UnwindSafe for TunnelRequest
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