pub trait NodeControllerServerHandler<___T: Transport> {
// Required methods
fn remove(&mut self, sender: &ServerSender<___T, NodeController>);
fn request_bind(
&mut self,
sender: &ServerSender<___T, NodeController>,
request: RequestBuffer<___T, RequestBind>,
responder: Responder<RequestBind>,
);
// Provided method
fn on_unknown_interaction(
&mut self,
sender: &ServerSender<___T, NodeController>,
ordinal: u64,
) { ... }
}
Expand description
A server handler for the NodeController protocol.
See NodeController
for more details.
Required Methods§
Sourcefn remove(&mut self, sender: &ServerSender<___T, NodeController>)
fn remove(&mut self, sender: &ServerSender<___T, NodeController>)
Removes the node and all of its children.
Sourcefn request_bind(
&mut self,
sender: &ServerSender<___T, NodeController>,
request: RequestBuffer<___T, RequestBind>,
responder: Responder<RequestBind>,
)
fn request_bind( &mut self, sender: &ServerSender<___T, NodeController>, request: RequestBuffer<___T, RequestBind>, responder: Responder<RequestBind>, )
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. - error
ZX_ERR_ALREADY_EXISTS
if the node has an outstanding |RequestBind| call which has not completed.