pub enum RelayTarget {
Connect(SocketAddr),
Attached(TcpStream),
}Expand description
How a host-side TCP relay should obtain its remote socket.
Variants§
Connect(SocketAddr)
Open a new outbound host TcpStream to the destination.
Attached(TcpStream)
Use an already-accepted host TcpStream from a published port listener.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RelayTarget
impl RefUnwindSafe for RelayTarget
impl Send for RelayTarget
impl Sync for RelayTarget
impl Unpin for RelayTarget
impl UnsafeUnpin for RelayTarget
impl UnwindSafe for RelayTarget
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