pub struct PlValues { /* private fields */ }Expand description
Reads parameter values in the byte order of their list.
Implementations§
Source§impl PlValues
impl PlValues
Sourcepub fn new(endianness: Endianness) -> Self
pub fn new(endianness: Endianness) -> Self
Values in the given byte order.
Sourcepub fn bool(&self, p: &Parameter) -> Result<bool, DecodeError>
pub fn bool(&self, p: &Parameter) -> Result<bool, DecodeError>
boolean: one octet, non-zero is true.
Sourcepub fn string(&self, p: &Parameter) -> Result<String, DecodeError>
pub fn string(&self, p: &Parameter) -> Result<String, DecodeError>
string: length (with the terminating NUL), octets, NUL.
Sourcepub fn strings(&self, p: &Parameter) -> Result<Vec<String>, DecodeError>
pub fn strings(&self, p: &Parameter) -> Result<Vec<String>, DecodeError>
sequence<string>, as in PartitionQosPolicy. Each string’s
length is aligned to 4 from the start of the value.
Sourcepub fn string_pairs(
&self,
p: &Parameter,
) -> Result<Vec<(String, String)>, DecodeError>
pub fn string_pairs( &self, p: &Parameter, ) -> Result<Vec<(String, String)>, DecodeError>
sequence<struct { string; string; }>, as DataTags (DDS
Security 1.2, 7.2.5): pairs of strings, each aligned to 4 from the
start of the value.
Sourcepub fn content_filter(
&self,
p: &Parameter,
) -> Result<ContentFilterProperty, DecodeError>
pub fn content_filter( &self, p: &Parameter, ) -> Result<ContentFilterProperty, DecodeError>
ContentFilterProperty_t (9.6.2.2.1): four strings and a
sequence<string>, each string aligned to 4 from the start of the
value.
Sourcepub fn protocol_version(
&self,
p: &Parameter,
) -> Result<ProtocolVersion, DecodeError>
pub fn protocol_version( &self, p: &Parameter, ) -> Result<ProtocolVersion, DecodeError>
ProtocolVersion_t.
Trait Implementations§
Auto Trait Implementations§
impl Forget for PlValues
impl Freeze for PlValues
impl Move for PlValues
impl RefUnwindSafe for PlValues
impl Send for PlValues
impl Sync for PlValues
impl Unpin for PlValues
impl UnsafeUnpin for PlValues
impl UnwindSafe for PlValues
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more