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 ClientCompatFrom<NodeProxy> for Node
impl ClientCompatFrom<NodeProxy> for Node
Source§fn client_compat_from(proxy: NodeProxy) -> Client<Self, Channel>
fn client_compat_from(proxy: NodeProxy) -> Client<Self, Channel>
Converts
proxy
into a Client
for this protocol.Source§impl CompatFrom<Node> for NodeMarker
impl CompatFrom<Node> for NodeMarker
Source§fn compat_from(_: Node) -> Self
fn compat_from(_: Node) -> Self
Converts
value
into a value of this type.Source§impl CompatFrom<NodeMarker> for Node
impl CompatFrom<NodeMarker> for Node
Source§fn compat_from(_: NodeMarker) -> Self
fn compat_from(_: NodeMarker) -> Self
Converts
value
into a value of this type.Source§impl<___H, ___T> DispatchClientMessage<___H, ___T> for Nodewhere
___H: NodeClientHandler<___T> + Send,
___T: Transport,
<AddChild as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
impl<___H, ___T> DispatchClientMessage<___H, ___T> for Nodewhere
___H: NodeClientHandler<___T> + Send,
___T: Transport,
<AddChild as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
Source§impl<___H, ___T> DispatchServerMessage<___H, ___T> for Nodewhere
___H: NodeServerHandler<___T> + Send,
___T: Transport,
<AddChild as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
impl<___H, ___T> DispatchServerMessage<___H, ___T> for Nodewhere
___H: NodeServerHandler<___T> + Send,
___T: Transport,
<AddChild as Method>::Request: Decode<<___T as Transport>::RecvBuffer>,
Source§async fn on_one_way(
handler: &mut ___H,
sender: &ServerSender<Self, ___T>,
ordinal: u64,
buffer: ___T::RecvBuffer,
)
async fn on_one_way( handler: &mut ___H, sender: &ServerSender<Self, ___T>, ordinal: u64, buffer: ___T::RecvBuffer, )
Handles a received server one-way message with the given handler.
Source§async fn on_two_way(
handler: &mut ___H,
sender: &ServerSender<Self, ___T>,
ordinal: u64,
buffer: ___T::RecvBuffer,
responder: Responder,
)
async fn on_two_way( handler: &mut ___H, sender: &ServerSender<Self, ___T>, ordinal: u64, buffer: ___T::RecvBuffer, responder: Responder, )
Handles a received server two-way message with the given handler.
Source§impl<___T> Protocol<___T> for Nodewhere
___T: Transport,
impl<___T> Protocol<___T> for Nodewhere
___T: Transport,
Source§type ClientSender = NodeClientSender<___T>
type ClientSender = NodeClientSender<___T>
The client sender for the protocol. It must be a
#[repr(transparent)]
wrapper around
ClientSender<T>
.Source§type ServerSender = NodeServerSender<___T>
type ServerSender = NodeServerSender<___T>
The server sender for the protocol. It must be a
#[repr(transparent)]
wrapper around
ServerSender<T>
.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