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.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Source§impl TcpProxyControlProxyInterface for TcpProxyControlProxy
impl TcpProxyControlProxyInterface for TcpProxyControlProxy
type OpenProxy_ResponseFut = QueryResponseFut<u16>
fn open_proxy_( &self, target_port: u16, proxy_port: u16, tcp_proxy: ServerEnd<TcpProxy_Marker>, ) -> Self::OpenProxy_ResponseFut
Auto Trait Implementations§
impl Freeze for TcpProxyControlProxy
impl !RefUnwindSafe for TcpProxyControlProxy
impl Send for TcpProxyControlProxy
impl Sync for TcpProxyControlProxy
impl Unpin for TcpProxyControlProxy
impl !UnwindSafe for TcpProxyControlProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)