pub trait NodeServerHandler<___T: Transport = Channel> {
// Required method
fn add_child(
&mut self,
sender: &ServerSender<Node, ___T>,
request: Request<AddChild, ___T>,
responder: Responder<AddChild>,
) -> impl Future<Output = ()> + Send;
// Provided method
fn on_unknown_interaction(
&mut self,
sender: &ServerSender<Node, ___T>,
ordinal: u64,
) -> impl Future<Output = ()> + Send { ... }
}
Expand description
A server handler for the Node protocol.
See Node
for more details.
Required Methods§
Sourcefn add_child(
&mut self,
sender: &ServerSender<Node, ___T>,
request: Request<AddChild, ___T>,
responder: Responder<AddChild>,
) -> impl Future<Output = ()> + Send
fn add_child( &mut self, sender: &ServerSender<Node, ___T>, request: Request<AddChild, ___T>, responder: Responder<AddChild>, ) -> impl Future<Output = ()> + Send
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, sender: &ServerSender<Node, ___T>, ordinal: u64, ) -> impl Future<Output = ()> + Send
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.