pub trait NodeLocalServerHandler<___T: Transport = Channel> {
// Required method
fn add_child(
&mut self,
request: Request<AddChild, ___T>,
responder: Responder<AddChild, ___T>,
) -> impl Future<Output = ()>;
// Provided method
fn on_unknown_interaction(
&mut self,
ordinal: u64,
) -> impl Future<Output = ()> { ... }
}Expand description
A server handler for the Node protocol.
See Node for more details.
Required Methods§
Sourcefn add_child(
&mut self,
request: Request<AddChild, ___T>,
responder: Responder<AddChild, ___T>,
) -> impl Future<Output = ()>
fn add_child( &mut self, request: Request<AddChild, ___T>, responder: Responder<AddChild, ___T>, ) -> impl Future<Output = ()>
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.
Provided Methods§
fn on_unknown_interaction(&mut self, ordinal: u64) -> impl Future<Output = ()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.