Expand description
This crate provides an implementation of an Ockam [Ockam][main-ockam-crate-link] Node and is intended for use by crates that provide features and add-ons to the main [Ockam][main-ockam-crate-link] library.
The main [Ockam][main-ockam-crate-link] crate re-exports types defined in
this crate, when the "std"
feature is enabled.
Re-exports§
Modules§
- api
- Api helpers
- callback
- Callback utility
- channel_
types - MPSC channel type aliases
- compat
- Async Mutex and RwLock
- debugger
- Debugger
- storage
- Support for storing persistent values
- workers
- Helper workers A collection of utility workers for various use cases.
Macros§
- migrate
- Create a migrator given a path to sql script
- retry
- This macro wraps a function with retry calls to keep calling the function until the error “database is locked” is not raised anymore.
Structs§
- Context
- Context contains Node state and references to the runtime.
- Delayed
Event - Allow to send message to destination address periodically after some delay Only one scheduled heartbeat allowed at a time Dropping this handle cancels scheduled heartbeat
- Executor
- Underlying Ockam node executor
- Message
Receive Options - Full set of options to
send_and_receive_extended
function - Message
Send Receive Options - Full set of options to
send_and_receive_extended
function - Node
Builder - Start a node with a custom setup configuration
- Null
Worker - A minimal worker implementation that does nothing
- Processor
Builder - Start a
Processor
- Worker
Builder - Start a
Worker
with a custom configuration
Enums§
- Context
Mode - Context mode depending on the fact if it’s attached to a Worker or a Processor
- Node
Error - Enumeration of error causes in ockam_node
- Node
Reason - Reasons why a generic Ockam Node operation has failed
- Router
Reason - Reasons why adding an external router has failed
- Worker
Reason - Reasons why a worker operation has failed
- Worker
Shutdown Priority - Higher value means the worker is shutdown earlier
Constants§
- DEFAULT_
TIMEOUT - A default timeout in seconds
Traits§
- HasContext
- This trait can be used to integrate transports into a node