Enum ockam::NodeMessage [−][src]
pub enum NodeMessage {
StartWorker(AddressSet, Sender<RelayMessage>, Sender<Result<NodeReply, NodeError>>),
ListWorkers(Sender<Result<NodeReply, NodeError>>),
StopWorker(Address, Sender<Result<NodeReply, NodeError>>),
StartProcessor(Address, Sender<RelayMessage>, Sender<Result<NodeReply, NodeError>>, ShutdownHandle),
StopProcessor(Address, Sender<Result<NodeReply, NodeError>>),
StopNode,
SenderReq(Address, Sender<Result<NodeReply, NodeError>>),
Router(u8, Address, Sender<Result<NodeReply, NodeError>>),
CheckAddress(AddressSet, Sender<Result<NodeReply, NodeError>>),
}Expand description
Messages sent from the Node to the Executor
Variants
Start a new worker and store the send handle
Tuple Fields of StartWorker
Return a list of all worker addresses
Stop an existing worker
Start a new processor and store the send and shutdown handles
Tuple Fields of StartProcessor
Stop an existing processor
Stop the node (and all workers)
Request the sender for a worker address
Register a new router for a route id type
CheckAddress(AddressSet, Sender<Result<NodeReply, NodeError>>)Check if a given address is already registered
Tuple Fields of CheckAddress
0: AddressSet1: Sender<Result<NodeReply, NodeError>>Implementations
pub fn start_worker(
address: AddressSet,
sender: Sender<RelayMessage>
) -> (NodeMessage, Receiver<Result<NodeReply, NodeError>>)
pub fn start_worker(
address: AddressSet,
sender: Sender<RelayMessage>
) -> (NodeMessage, Receiver<Result<NodeReply, NodeError>>)
Create a start worker message
Create a start worker message
pub fn stop_processor(
address: Address
) -> (NodeMessage, Receiver<Result<NodeReply, NodeError>>)
pub fn stop_processor(
address: Address
) -> (NodeMessage, Receiver<Result<NodeReply, NodeError>>)
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
pub fn sender_request(
route: Address
) -> (NodeMessage, Receiver<Result<NodeReply, NodeError>>)
pub fn sender_request(
route: Address
) -> (NodeMessage, Receiver<Result<NodeReply, NodeError>>)
Create a sender request message and reply receiver
pub fn check_address(
addrs: AddressSet
) -> (NodeMessage, Receiver<Result<NodeReply, NodeError>>)
pub fn check_address(
addrs: AddressSet
) -> (NodeMessage, Receiver<Result<NodeReply, NodeError>>)
Create a message to check the availability of an address set
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NodeMessage
impl Send for NodeMessage
impl Sync for NodeMessage
impl Unpin for NodeMessage
impl !UnwindSafe for NodeMessage
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;pub fn vzip(self) -> V
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output; where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output; where
S: Into<Dispatch>,
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more