pub enum NodeRequest {
AddChild {
args: NodeAddArgs,
controller: ServerEnd<NodeControllerMarker>,
node: Option<ServerEnd<NodeMarker>>,
responder: NodeAddChildResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: NodeControlHandle,
method_type: MethodType,
},
}
Expand description
Protocol through which a driver manages a node that it is bound to.
Drivers should maintain their client connection to the node. Dropping
the client connection while the driver is running will cause the
driver framework to remove the driver and node from the topology.
If the driver has set host_restart_on_crash
to “true” in their
component manifest, dropping the connection will initiate a restart of
the driver host and driver.
Variants§
AddChild
Adds a child node to this node.
If node
is present, this driver takes responsibility for binding to
the newly created child. Otherwise, the driver framework will locate an
appropriate driver to bind the child to.
Fields
§
args: NodeAddArgs
§
controller: ServerEnd<NodeControllerMarker>
§
node: Option<ServerEnd<NodeMarker>>
§
responder: NodeAddChildResponder
_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: NodeControlHandle
§
method_type: MethodType
Implementations§
Source§impl NodeRequest
impl NodeRequest
pub fn into_add_child( self, ) -> Option<(NodeAddArgs, ServerEnd<NodeControllerMarker>, Option<ServerEnd<NodeMarker>>, NodeAddChildResponder)>
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 NodeRequest
impl !RefUnwindSafe for NodeRequest
impl Send for NodeRequest
impl Sync for NodeRequest
impl Unpin for NodeRequest
impl !UnwindSafe for NodeRequest
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