Enum ockam_node::NodeMessage[][src]

pub enum NodeMessage {
    StartWorker {
        addrs: AddressSet,
        senders: SenderPair,
        bare: bool,
        reply: Sender<NodeReplyResult>,
    },
    ListWorkers(Sender<NodeReplyResult>),
    SetCluster(AddressStringSender<NodeReplyResult>),
    StopWorker(AddressSender<NodeReplyResult>),
    StartProcessor(Address, SenderPair, Sender<NodeReplyResult>),
    StopProcessor(AddressSender<NodeReplyResult>),
    StopNode(ShutdownTypeSender<NodeReplyResult>),
    AbortNode,
    StopAck(Address),
    SenderReq(AddressSender<NodeReplyResult>),
    Router(u8AddressSender<NodeReplyResult>),
}
Expand description

Messages sent from the Node to the Executor

Variants

StartWorker

Start a new worker and store the send handle

Fields of StartWorker

addrs: AddressSet

The set of addresses in use by this worker

senders: SenderPair

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

bare: bool

A bare worker runs no relay state

reply: Sender<NodeReplyResult>

Reply channel for command confirmation

ListWorkers(Sender<NodeReplyResult>)

Return a list of all worker addresses

Tuple Fields of ListWorkers

0: Sender<NodeReplyResult>

Add an existing address to a cluster

Tuple Fields of SetCluster

0: Address1: String2: Sender<NodeReplyResult>

Stop an existing worker

Tuple Fields of StopWorker

0: Address1: Sender<NodeReplyResult>
StartProcessor(Address, SenderPair, Sender<NodeReplyResult>)

Start a new processor

Tuple Fields of StartProcessor

0: Address1: SenderPair2: Sender<NodeReplyResult>
StopProcessor(AddressSender<NodeReplyResult>)

Stop an existing processor

Tuple Fields of StopProcessor

0: Address1: Sender<NodeReplyResult>

Stop the node (and all workers)

Tuple Fields of StopNode

0: ShutdownType1: Sender<NodeReplyResult>
AbortNode

Immediately stop the node runtime

StopAck(Address)

Let the router know a particular address has stopped

Tuple Fields of StopAck

0: Address

Request the sender for a worker address

Tuple Fields of SenderReq

0: Address1: Sender<NodeReplyResult>

Register a new router for a route id type

Tuple Fields of Router

0: u81: Address2: Sender<NodeReplyResult>

Implementations

Create a start worker message

  • senders: message and command senders for the relay

  • bare: 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

Trait Implementations

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

Performs the conversion.

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

Performs the conversion.

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