pub struct HostTunnelOpts {
pub native: Option<bool>,
pub ports: Option<Vec<PortForward>>,
}
Fields§
§native: Option<bool>
Map each service port to the same port on the host, as if the service were running natively. Note: enabling may result in port conflicts.
ports: Option<Vec<PortForward>>
Configure explicit port forwarding rules for the tunnel. If a port’s frontend is unspecified or 0, a random port will be chosen by the host. If no ports are given, all of the service’s ports are forwarded. If native is true, each port maps to the same port on the host. If native is false, each port maps to a random port chosen by the host. If ports are given and native is true, the ports are additive.
Trait Implementations§
Source§impl Debug for HostTunnelOpts
impl Debug for HostTunnelOpts
Source§impl PartialEq for HostTunnelOpts
impl PartialEq for HostTunnelOpts
impl StructuralPartialEq for HostTunnelOpts
Auto Trait Implementations§
impl Freeze for HostTunnelOpts
impl RefUnwindSafe for HostTunnelOpts
impl Send for HostTunnelOpts
impl Sync for HostTunnelOpts
impl Unpin for HostTunnelOpts
impl UnwindSafe for HostTunnelOpts
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