pub struct TcpProxyControlProxy { /* private fields */ }
Implementations§
Source§impl TcpProxyControlProxy
impl TcpProxyControlProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.testing.proxy/TcpProxyControl.
Sourcepub fn take_event_stream(&self) -> TcpProxyControlEventStream
pub fn take_event_stream(&self) -> TcpProxyControlEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn open_proxy_(
&self,
target_port: u16,
proxy_port: u16,
tcp_proxy: ServerEnd<TcpProxy_Marker>,
) -> QueryResponseFut<u16, DefaultFuchsiaResourceDialect>
pub fn open_proxy_( &self, target_port: u16, proxy_port: u16, tcp_proxy: ServerEnd<TcpProxy_Marker>, ) -> QueryResponseFut<u16, DefaultFuchsiaResourceDialect>
Opens a proxy to the given |target_port|. If a proxy is already open for the specified |target_port|, the existing |open_port| is returned. The proxy remains open as long as at least a single client keeps their |proxy_token| handle for the specified |target_port|. Once all the |proxy_token| handles are closed, the proxy is closed. |proxy_port| is the source port where the proxy is opened. Except when the test running on remote host needs to reach a local device, its value is 0. This is only useful when the user has tunneled these ports to the local device and specified that port number as |proxy_port|.
Trait Implementations§
Source§impl Clone for TcpProxyControlProxy
impl Clone for TcpProxyControlProxy
Source§fn clone(&self) -> TcpProxyControlProxy
fn clone(&self) -> TcpProxyControlProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TcpProxyControlProxy
impl Debug for TcpProxyControlProxy
Source§impl Proxy for TcpProxyControlProxy
impl Proxy for TcpProxyControlProxy
Source§type Protocol = TcpProxyControlMarker
type Protocol = TcpProxyControlMarker
Proxy
controls.