pub enum NodeControllerRequest {
Remove {
control_handle: NodeControllerControlHandle,
},
RequestBind {
payload: NodeControllerRequestBindRequest,
responder: NodeControllerRequestBindResponder,
},
_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.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
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)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeControllerRequest
impl !RefUnwindSafe for NodeControllerRequest
impl Send for NodeControllerRequest
impl Sync for NodeControllerRequest
impl Unpin for NodeControllerRequest
impl !UnwindSafe for NodeControllerRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more