Module rusp::usp_generator
source · Expand description
Helper functions to generate USP Messages
Re-exports§
pub use crate::usp_types::NotifyType;
pub use crate::usp_types::PayloadSARState;
pub use crate::usp_types::PayloadSecurity;
Structs§
Enums§
- Enum describing the result of an operation, sent through the Operate response
Functions§
- Gets an USP error message from the error code, returning an empty str for unknown codes
- Generates a body of a USP Msg with a USP Add request
- Creates a body for a USP Msg with a USP AddResp response
- Generates a body of a USP Msg with a USP Delete request
- Creates a body for a USP Msg with a USP DeleteResp response
- Creates a body for a USP Msg with an USP Error
- Generates a body of a USP Msg with a USP GetInstances request
- Creates a body for a USP Msg with a USP GetInstancesResp response
- Generates a body of a USP Msg with a USP Get request
- Creates a body for a USP Msg with a USP GetResp response
- Creates a body for a USP Msg with a USP GetResp response
- Generates a body of a USP Msg with a USP GetSupportedDM request
- Creates a body for a USP Msg with a USP GetSupportedDM response
- Creates a body for a USP Msg with a USP GetSupportedProtocolResp response
- Generates a body of a USP Msg with a USP GetSupportedProtocol request
- Create a USP record of type MQTT Connect
- Wraps the body of a USP Msg into a USP Msg with the specified message ID
- Wraps the body of a USP Msg into a USP Msg with the specified message ID
- Wraps a Usp Msg into an “no_session_context” USP Record with the specified record information
- Wraps the body of a USP Msg with a USP Notify request
- Creates a body for a USP Msg with a USP NotifyResp response
- Generates a body of a USP Msg with a USP Operate request
- Creates a body for a USP Msg with a USP OperateResp response
- Wraps a Usp Msg into an “session_context” USP Record with the specified record information
- Generates a body of a USP Msg with a USP Set request
- Creates a body for a USP Msg with a USP SetResp response
- Creates a body for a USP Msg with an USP Error