Enum ockam_node::NodeMessage[][src]

pub enum NodeMessage {
    StartWorker(AddressSetSender<RelayMessage>, Sender<NodeReplyResult>),
    ListWorkers(Sender<NodeReplyResult>),
    StopWorker(AddressSender<NodeReplyResult>),
    StartProcessor(AddressSender<RelayMessage>, Sender<NodeReplyResult>, ShutdownHandle),
    StopProcessor(AddressSender<NodeReplyResult>),
    StopNode,
    SenderReq(AddressSender<NodeReplyResult>),
    Router(u8AddressSender<NodeReplyResult>),
    CheckAddress(AddressSetSender<NodeReplyResult>),
}
Expand description

Messages sent from the Node to the Executor

Variants

StartWorker(AddressSetSender<RelayMessage>, Sender<NodeReplyResult>)

Start a new worker and store the send handle

Tuple Fields of StartWorker

0: AddressSet1: Sender<RelayMessage>2: Sender<NodeReplyResult>
ListWorkers(Sender<NodeReplyResult>)

Return a list of all worker addresses

Tuple Fields of ListWorkers

0: Sender<NodeReplyResult>

Stop an existing worker

Tuple Fields of StopWorker

0: Address1: Sender<NodeReplyResult>
StartProcessor(AddressSender<RelayMessage>, Sender<NodeReplyResult>, ShutdownHandle)

Start a new processor and store the send and shutdown handles

Tuple Fields of StartProcessor

0: Address1: Sender<RelayMessage>2: Sender<NodeReplyResult>3: ShutdownHandle
StopProcessor(AddressSender<NodeReplyResult>)

Stop an existing processor

Tuple Fields of StopProcessor

0: Address1: Sender<NodeReplyResult>
StopNode

Stop the node (and all workers)

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>

Check if a given address is already registered

Tuple Fields of CheckAddress

0: AddressSet1: Sender<NodeReplyResult>

Implementations

Create a start worker message

Create a start worker message

Create a stop worker message and reply receiver

Create a list worker 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 message to check the availability of an address set

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