pub struct NodeControllerSynchronousProxy { /* private fields */ }
Implementations§
source§impl NodeControllerSynchronousProxy
impl NodeControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<NodeControllerEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<NodeControllerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn request_bind(
&self,
payload: NodeControllerRequestBindRequest,
___deadline: Time
) -> Result<NodeControllerRequestBindResult, Error>
pub fn request_bind( &self, payload: NodeControllerRequestBindRequest, ___deadline: Time ) -> Result<NodeControllerRequestBindResult, Error>
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.