Enum ockam_node::NodeReply [−][src]
pub enum NodeReply {
Ok,
Workers(Vec<Address>),
Sender {
addr: Address,
sender: Sender<RelayMessage>,
wrap: bool,
},
}
Expand description
Successful return values from a router command
Variants
Success with no payload
A list of worker addresses
Message sender to a specific worker
Fields of Sender
Implementations
Return NodeReply::Ok
Return [NodeReply::NoSuchWorker]
Return [NodeReply::NoSuchProcessor]
Return [NodeReply::WorkerExists] for the given address
Return [NodeReply::RouterExists]
Return NodeReply::Workers for the given addresses
Return NodeReply::Sender for the given information
Consume the wrapper and return NodeReply::Sender
Consume the wrapper and return NodeReply::Workers
Returns Ok if self is NodeReply::Ok
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NodeReply
impl !UnwindSafe for NodeReply
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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