pub struct NodeControllerProxy { /* private fields */ }
Implementations§
source§impl NodeControllerProxy
impl NodeControllerProxy
sourcepub fn take_event_stream(&self) -> NodeControllerEventStream
pub fn take_event_stream(&self) -> NodeControllerEventStream
Get a Stream of events from the remote end of the NodeController protocol
Panics
Panics if the event stream was already taken.
sourcepub fn request_bind(
&self,
payload: NodeControllerRequestBindRequest
) -> QueryResponseFut<NodeControllerRequestBindResult>
pub fn request_bind( &self, payload: NodeControllerRequestBindRequest ) -> QueryResponseFut<NodeControllerRequestBindResult>
Request that the framework attempts to bind a driver to this node. This is an additional request for binding as the framework attempts to bind a node once when the node is created.
- error
ZX_ERR_ALREADY_BOUND
if the node is already bound andforce_rebind
is false.
Trait Implementations§
source§impl Clone for NodeControllerProxy
impl Clone for NodeControllerProxy
source§fn clone(&self) -> NodeControllerProxy
fn clone(&self) -> NodeControllerProxy
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 NodeControllerProxy
impl Debug for NodeControllerProxy
source§impl NodeControllerProxyInterface for NodeControllerProxy
impl NodeControllerProxyInterface for NodeControllerProxy
fn remove(&self) -> Result<(), Error>
type RequestBindResponseFut = QueryResponseFut<Result<(), i32>>
fn request_bind( &self, payload: NodeControllerRequestBindRequest ) -> Self::RequestBindResponseFut
source§impl Proxy for NodeControllerProxy
impl Proxy for NodeControllerProxy
§type Protocol = NodeControllerMarker
type Protocol = NodeControllerMarker
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