pub trait NodeClientSender {
type Transport: Transport;
// Required method
fn add_child<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, AddChild>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireNodeAddChildRequest>;
}
Expand description
A helper trait for the Node
client sender.
Required Associated Types§
Required Methods§
Sourcefn add_child<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, AddChild>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireNodeAddChildRequest>,
fn add_child<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, AddChild>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireNodeAddChildRequest>,
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.
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.
Implementations on Foreign Types§
Source§impl<___T> NodeClientSender for ClientSender<___T, Node>where
___T: Transport,
impl<___T> NodeClientSender for ClientSender<___T, Node>where
___T: Transport,
Source§fn add_child<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, AddChild>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireNodeAddChildRequest>,
fn add_child<___R>(
&self,
request: &mut ___R,
) -> Result<ResponseFuture<'_, Self::Transport, AddChild>, EncodeError>where
___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireNodeAddChildRequest>,
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.