Enum ockam_node::NodeMessage[][src]

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

Messages sent from the Node to the Executor

Variants

StartWorker

Start a new worker and store the send handle

Tuple Fields of StartWorker

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

Return a list of all worker addresses

Tuple Fields of ListWorkers

0: Sender<NodeReplyResult>
StopWorker

Stop an existing worker

Tuple Fields of StopWorker

0: Address1: Sender<NodeReplyResult>
StartProcessor

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

Stop an existing processor

Tuple Fields of StopProcessor

0: Address1: Sender<NodeReplyResult>
StopNode

Stop the node (and all workers)

SenderReq

Request the sender for a worker address

Tuple Fields of SenderReq

0: Address1: Sender<NodeReplyResult>
Router

Register a new router for a route id type

Tuple Fields of Router

0: u81: Address2: Sender<NodeReplyResult>
CheckAddress

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.