pub enum TunnelMode {
Local {
remote_host: String,
remote_port: u16,
},
Socks5,
StreamLocal {
socket_path: String,
},
Reverse {
remote_bind: String,
remote_port: u16,
},
}Expand description
Which tunnel the caller asked for.
Variants§
Local
Local listener forwarding to a fixed remote host:port.
Socks5
Local listener speaking SOCKS5; the client names a target per connection.
StreamLocal
Local listener forwarding to a remote Unix domain socket.
Reverse
Server-side listener delivering connections back to a local port.
Implementations§
Trait Implementations§
Source§impl Clone for TunnelMode
impl Clone for TunnelMode
Source§fn clone(&self) -> TunnelMode
fn clone(&self) -> TunnelMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TunnelMode
impl RefUnwindSafe for TunnelMode
impl Send for TunnelMode
impl Sync for TunnelMode
impl Unpin for TunnelMode
impl UnsafeUnpin for TunnelMode
impl UnwindSafe for TunnelMode
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