Crate swimos_api

Source
Expand description

§SwimOS API

This crate provides the API for implementing components that can be executed by the SwimOS runtime.

  • The agent module contains the agent::Agent trait that can be implemented to add new kinds of agent to the runtime. The canonical Rust implementation of this trait can be found in the swimos_agent crate.
  • The persistence module contains the persistence::PlanePersistence trait that can be implemented to add new storage implementations to allow a Swim server to maintain an external persistent state that can outlive a single execution of the server process.

Modules§

address
Types to describe the addresses of local and remote lanes.
agent
SwimOS Agent API
error
SwimOS API error types
http
A model of HTTP requests and responses.
persistence
SwimOS Persistence API