Crate valor_core[][src]

Valor

A lightweight HTTP plugin system that runs in the server and the browser.

  • Use valor_bin to run your Rust and JS(soon!) plugins in the server.
  • Use valor_web as a script imported from the main document or a worker in your web application to have a local API powered by a service worker.

Re-exports

pub use http_types as http;

Structs

Context

Context allows plugins to pass state to the message handler and eventually to easily communicate with other plugins.

FnHandler

Enums

Answer

Type of valid outputs that a handler can return

Error
Message

Type of message supported by a handler

Traits

Vlugin

The Vlugin trait defines plugins that can handle any supported message format. It also allows the plugin to initialize an internal state with the help of the Context type.

Functions

h

Shorthand for handlers created from a closure

Type Definitions

VluginConfig

Attribute Macros

async_trait