Skip to main content

Module message

Module message 

Source
Expand description

The traits that tie a payload type to its action, direction and message kind.

Structs§

UnknownAction
An action name this version does not define.
UnknownVariant
An enumeration value this version does not define.

Enums§

MessageKind
Whether a message is a confirmed CALL or an unconfirmed SEND.
NoResponse
The response type of a SEND, which by definition never has one (Part 4 §4.2.4).
Origin
Which peer originates an action.

Traits§

ActionName
The behaviour every generated per-version Action enum provides.
Confirmed
A request that is answered — everything except an OCPP 2.1 SEND.
DecodeRequest
A union of the requests one side receives — v2_1::CsRequest on a CSMS, v2_1::CsmsRequest on a station — decodable from an action and a raw payload.
Request
A request payload.
Response
A response payload.
Sealed
Prevents downstream crates from implementing the payload traits, so new actions and new versions are not breaking changes for them.
Unconfirmed
An unconfirmed request — an OCPP 2.1 SEND (Part 4 §4.2.4).