Trait NodeControllerServerHandler

Source
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§

Source

fn remove(&mut self, sender: &ServerSender<___T, NodeController>)

Removes the node and all of its children.

Source

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 and force_rebind is false.
  • error ZX_ERR_ALREADY_EXISTS if the node has an outstanding |RequestBind| call which has not completed.

Provided Methods§

Source

fn on_unknown_interaction( &mut self, sender: &ServerSender<___T, NodeController>, ordinal: u64, )

Implementors§