pub struct Node;
Expand description
The type corresponding to the Node protocol.
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.
Trait Implementations§
Source§impl<___T, ___H> ClientProtocol<___T, ___H> for Nodewhere
___T: Transport,
___H: NodeClientHandler<___T>,
<AddChild as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
impl<___T, ___H> ClientProtocol<___T, ___H> for Nodewhere
___T: Transport,
___H: NodeClientHandler<___T>,
<AddChild as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
Source§impl<___T, ___H> ServerProtocol<___T, ___H> for Nodewhere
___T: Transport,
___H: NodeServerHandler<___T>,
WireNodeAddChildRequest: Decode<<___T as Transport>::RecvBuffer>,
impl<___T, ___H> ServerProtocol<___T, ___H> for Nodewhere
___T: Transport,
___H: NodeServerHandler<___T>,
WireNodeAddChildRequest: Decode<<___T as Transport>::RecvBuffer>,
Source§fn on_one_way(
handler: &mut ___H,
sender: &ServerSender<___T, Self>,
ordinal: u64,
buffer: ___T::RecvBuffer,
)
fn on_one_way( handler: &mut ___H, sender: &ServerSender<___T, Self>, ordinal: u64, buffer: ___T::RecvBuffer, )
Handles a received server one-way message with the given handler.
Source§fn on_two_way(
handler: &mut ___H,
sender: &ServerSender<___T, Self>,
ordinal: u64,
buffer: ___T::RecvBuffer,
responder: Responder,
)
fn on_two_way( handler: &mut ___H, sender: &ServerSender<___T, Self>, ordinal: u64, buffer: ___T::RecvBuffer, responder: Responder, )
Handles a received server two-way message with the given handler.
Source§impl TakeFrom<Node> for NodeMarker
impl TakeFrom<Node> for NodeMarker
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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