Crate ockam_core[][src]

Expand description

Core types of the Ockam library.

This crate contains the core types of the Ockam library and is intended for use by other crates that provide features and add-ons to the main Ockam library.

The main Ockam crate re-exports types defined in this crate.

Re-exports

pub extern crate async_trait;
pub extern crate hashbrown;
pub extern crate hex;

Modules

A facade around the various collections and primitives needed when using no alloc, alloc only, or std modes

Macros

Creates a Route containing the arguments.

Structs

A generic component address

A collection of Addresses

A passthrough marker message type

The type of errors returned by Ockam functions.

LocalMessage is a message type that is routed locally within one node.

A user-defined protocol identifier

Message that is meant to be sent between workers if Error-handling is needed.

A full route to a peer

Utility type to build and manipulate routes

A message wrapper that stores message route information

A utility structure for building routes to remote services

A generic transport message

Enums

A routing specific error type

A command message for router implementations

Traits

A user defined message that can be serialised and deserialised

Base ockam worker trait.

Functions

Produces Ok(true), which reads confusingly in auth code.

Produces Ok(false), which reads confusingly in auth code.

Type Definitions

Alias of the type used for encoded data.

The type returned by Ockam functions.

Attribute Macros