Struct ockam_core::Routed [−][src]
pub struct Routed<M: Message> { /* fields omitted */ }
Expand description
A message wrapper that stores message route information
Workers can accept arbitrary message types, which may not contain information about their routes. However, the ockam worker & messaging system already keeps track of this information internally. This type exposes this information to the user, without requiring changes in the user message types.
Implementations
Create a new Routed message wrapper
Return a copy of the onward route for this message
Return a copy of the full return route of the wrapped message
Consume the message wrapper to the underlying local message
Consume the message wrapper to the underlying transport message
Consume the message wrapper to the underlying local message