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 message address

Return a copy of the onward route for this message

Return a copy of the full return route of the wrapped message

Get a copy of the message sender address

Consume the message wrapper

Borrow the inner body

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

Get a reference to the underlying binary message payload

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.