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 transport
Trait Implementations
Auto Trait Implementations
impl<M> RefUnwindSafe for Routed<M> where
M: RefUnwindSafe,
impl<M> UnwindSafe for Routed<M> where
M: UnwindSafe,