pub struct EndpointProxy { /* private fields */ }
Implementations§
source§impl EndpointProxy
impl EndpointProxy
sourcepub fn take_event_stream(&self) -> EndpointEventStream
pub fn take_event_stream(&self) -> EndpointEventStream
Get a Stream of events from the remote end of the Endpoint protocol
Panics
Panics if the event stream was already taken.
pub fn get_config(&self) -> QueryResponseFut<EndpointConfig>
sourcepub fn set_link_up(&self, up: bool) -> QueryResponseFut<()>
pub fn set_link_up(&self, up: bool) -> QueryResponseFut<()>
Sends link up or down signal
sourcepub fn get_port(&self, port: ServerEnd<PortMarker>) -> Result<(), Error>
pub fn get_port(&self, port: ServerEnd<PortMarker>) -> Result<(), Error>
Connects to the underlying device port.
sourcepub fn get_proxy_(
&self,
proxy: ServerEnd<DeviceProxy_Marker>
) -> Result<(), Error>
pub fn get_proxy_( &self, proxy: ServerEnd<DeviceProxy_Marker> ) -> Result<(), Error>
Gets a proxy to open requests with zircon ethernet device.
Trait Implementations§
source§impl Clone for EndpointProxy
impl Clone for EndpointProxy
source§fn clone(&self) -> EndpointProxy
fn clone(&self) -> EndpointProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EndpointProxy
impl Debug for EndpointProxy
source§impl EndpointProxyInterface for EndpointProxy
impl EndpointProxyInterface for EndpointProxy
type GetConfigResponseFut = QueryResponseFut<EndpointConfig>
fn get_config(&self) -> Self::GetConfigResponseFut
type GetNameResponseFut = QueryResponseFut<String>
fn get_name(&self) -> Self::GetNameResponseFut
type SetLinkUpResponseFut = QueryResponseFut<()>
fn set_link_up(&self, up: bool) -> Self::SetLinkUpResponseFut
fn get_port(&self, port: ServerEnd<PortMarker>) -> Result<(), Error>
fn get_proxy_(&self, proxy: ServerEnd<DeviceProxy_Marker>) -> Result<(), Error>
source§impl Proxy for EndpointProxy
impl Proxy for EndpointProxy
§type Protocol = EndpointMarker
type Protocol = EndpointMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more