rtps-rs 0.1.2

Real Time Publish Subscribe protocol
Documentation
use crate::messages::submessage_elements::parameter::Parameter;

/// ParameterList is used as part of several messages to encapsulate
/// QoS parameters that may affect the interpretation of the message.
/// The encapsulation of the parameters follows a mechanism that allows
/// extensions to the QoS without breaking backwards compatibility.
#[derive(Debug, PartialEq)]
pub struct ParameterList {
    parameters: Vec<Parameter>,
}

/// The PID_PAD is used to enforce alignment of the parameter
/// that follows and its length can be anything (as long as it is a multiple of
/// 4)
pub const PID_PAD: u16 = 0x00;

/// The PID_SENTINEL is used to terminate
/// the parameter list and its length is ignore
pub const PID_SENTINEL: u16 = 0x01;