pub enum NodeMessage {
Show 13 variants StartWorker { addrs: AddressSet, senders: SenderPair, detached: bool, mailbox_count: Arc<AtomicUsize>, reply: SmallSender<NodeReplyResult>, }, ListWorkers(SmallSender<NodeReplyResult>), SetCluster(AddressStringSmallSender<NodeReplyResult>), StopWorker(AddressboolSmallSender<NodeReplyResult>), StartProcessor(Address, SenderPair, SmallSender<NodeReplyResult>), StopProcessor(AddressSmallSender<NodeReplyResult>), StopNode(ShutdownTypeSmallSender<NodeReplyResult>), AbortNode, StopAck(Address), SenderReq(AddressSmallSender<NodeReplyResult>), Router(TransportTypeAddressSmallSender<NodeReplyResult>), SetReady(Address), CheckReady(AddressSmallSender<NodeReplyResult>),
}
Expand description

Messages sent from the Node to the Executor

Variants

StartWorker

Fields

addrs: AddressSet

The set of addresses in use by this worker

senders: SenderPair

Pair of senders to the worker relay (msgs and ctrl)

detached: bool

A detached context/ “worker” runs no relay state

mailbox_count: Arc<AtomicUsize>

A mechanism to read channel fill-state for a worker

reply: SmallSender<NodeReplyResult>

Reply channel for command confirmation

Start a new worker and store the send handle

ListWorkers(SmallSender<NodeReplyResult>)

Return a list of all worker addresses

SetCluster(AddressStringSmallSender<NodeReplyResult>)

Add an existing address to a cluster

StopWorker(AddressboolSmallSender<NodeReplyResult>)

Stop an existing worker

StartProcessor(Address, SenderPair, SmallSender<NodeReplyResult>)

Start a new processor

StopProcessor(AddressSmallSender<NodeReplyResult>)

Stop an existing processor

StopNode(ShutdownTypeSmallSender<NodeReplyResult>)

Stop the node (and all workers)

AbortNode

Immediately stop the node runtime

StopAck(Address)

Let the router know a particular address has stopped

SenderReq(AddressSmallSender<NodeReplyResult>)

Request the sender for a worker address

Router(TransportTypeAddressSmallSender<NodeReplyResult>)

Register a new router for a route id type

SetReady(Address)

Message the router to set an address as “ready”

CheckReady(AddressSmallSender<NodeReplyResult>)

Check whether an address has been marked as “ready”

Implementations

Create a start worker message

  • senders: message and command senders for the relay

  • detached: indicate whether this worker address has a full relay behind it that can respond to shutdown commands. Setting this to true will disable stop ACK support in the router

Create a start worker message

Create a stop worker message and reply receiver

Create a list worker message and reply receiver

Create a set cluster message and reply receiver

Create a stop worker message and reply receiver

Create a stop node message

Create a sender request message and reply receiver

Create a SetReady message and reply receiver

Create a GetReady message and reply receiver

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more