pub enum NodeControllerRequest {
Remove {
control_handle: NodeControllerControlHandle,
},
RequestBind {
payload: NodeControllerRequestBindRequest,
responder: NodeControllerRequestBindResponder,
},
WaitForDriver {
responder: NodeControllerWaitForDriverResponder,
},
#[non_exhaustive]
_UnknownMethod {
ordinal: u64,
control_handle: NodeControllerControlHandle,
method_type: MethodType,
},
}
Expand description
Protocol through which a parent node controls one of its children.
Variants§
Remove
Removes the node and all of its children.
Fields
control_handle: NodeControllerControlHandle
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.
WaitForDriver
Hanging get style call that returns a terminal state for the associated Node
,
or the composite node that is parented by this node.
For a successfully started driver this returns immediately with the token of the
node that the driver started on.
If an error happens we wait until bootup is complete, which is when all drivers that
can bind and start have done so, before returning the error.
Fields
responder: NodeControllerWaitForDriverResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: NodeControllerControlHandle
method_type: MethodType
Implementations§
Source§impl NodeControllerRequest
impl NodeControllerRequest
pub fn into_remove(self) -> Option<NodeControllerControlHandle>
pub fn into_request_bind( self, ) -> Option<(NodeControllerRequestBindRequest, NodeControllerRequestBindResponder)>
pub fn into_wait_for_driver( self, ) -> Option<NodeControllerWaitForDriverResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL