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
Show fields
Implementations
impl NodeReply
[src]
impl NodeReply
[src]pub fn ok() -> NodeReplyResult
[src]
pub fn ok() -> NodeReplyResult
[src]Return NodeReply::Ok
pub fn no_such_worker(a: Address) -> NodeReplyResult
[src]
pub fn no_such_worker(a: Address) -> NodeReplyResult
[src]Return NodeReply::Ok
pub fn worker_exists(a: Address) -> NodeReplyResult
[src]
pub fn worker_exists(a: Address) -> NodeReplyResult
[src]Return [NodeReply::WorkerExists] for the given address
pub fn router_exists() -> NodeReplyResult
[src]
pub fn router_exists() -> NodeReplyResult
[src]Return [NodeReply::RouterExists]
pub fn workers(v: Vec<Address>) -> NodeReplyResult
[src]
pub fn workers(v: Vec<Address>) -> NodeReplyResult
[src]Return NodeReply::Workers for the given addresses
pub fn sender(
addr: Address,
sender: Sender<RelayMessage>,
wrap: bool
) -> NodeReplyResult
[src]
pub fn sender(
addr: Address,
sender: Sender<RelayMessage>,
wrap: bool
) -> NodeReplyResult
[src]Return NodeReply::Sender for the given information
pub fn take_sender(self) -> Result<(Address, Sender<RelayMessage>, bool), Error>
[src]
pub fn take_sender(self) -> Result<(Address, Sender<RelayMessage>, bool), Error>
[src]Consume the wrapper and return NodeReply::Sender
pub fn take_workers(self) -> Result<Vec<Address>, Error>
[src]
pub fn take_workers(self) -> Result<Vec<Address>, Error>
[src]Consume the wrapper and return NodeReply::Workers
pub fn is_ok(self) -> Result<(), Error>
[src]
pub fn is_ok(self) -> Result<(), Error>
[src]Returns Ok if self is NodeReply::Ok
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NodeReply
impl Send for NodeReply
impl Sync for NodeReply
impl Unpin for NodeReply
impl !UnwindSafe for NodeReply
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,