Module plumber_rs::protocol[][src]

The inter-component procotol utilities

Plumber has a language-neutral, centralized protocol management machenism. And this module provides the binding to the centralized protocol database and performe language neutral typeing.

Structs

Primitive

The object used to represent a pritmive type in the language-neutral protocol database

TypeInstanceObject

Type type instance object. For each time the Plumber framework activate the execution of the servlet, it will automatically create a data buffer called type instance, which is used to tracking the protocol data.

TypeModelObject

The object wrapper for a type model.

Traits

DataModel

The trait of the data models, which is used to read/write the typed data from/input Plumber pipe port.

PrimitiveTypeTag

The tag trait indicates that this is a rust type which can be mapped into a Plumber language-neutral primitive type

ProtocolModel

The trait for the protocol model, which defines what field we want to read/write to the typed Plumber pipe port.

Type Definitions

PrimitiveTypeShape

The shape of a primitive. This is used to check if the Rust type is a supported protocol primitive type. Also, it provides the data so that we can check the protocol primitive is expected type shape.

Untyped

The placeholder for the data model and protocol model of a totally untyped servlet.