Skip to main content

CdrDecode

Trait CdrDecode 

Source
pub trait CdrDecode: Sized {
    const IS_PRIMITIVE: bool = false;

    // Required method
    fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>;
}
Expand description

Value can be decoded from a BufferReader.

Provided Associated Constants§

Source

const IS_PRIMITIVE: bool = false

XCDR2 primitive classification, symmetric to CdrEncode::IS_PRIMITIVE. Controls DHEADER reading when decoding sequence<T>/T[N] with non-primitive T.

Required Methods§

Source

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Reads this value from the reader (alignment-aware).

§Errors

DecodeError.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CdrDecode for String

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl CdrDecode for bool

Source§

const IS_PRIMITIVE: bool = true

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl CdrDecode for char

Source§

const IS_PRIMITIVE: bool = true

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl CdrDecode for f32

Source§

const IS_PRIMITIVE: bool = true

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl CdrDecode for f64

Source§

const IS_PRIMITIVE: bool = true

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl CdrDecode for i8

Source§

const IS_PRIMITIVE: bool = true

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl CdrDecode for i16

Source§

const IS_PRIMITIVE: bool = true

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl CdrDecode for i32

Source§

const IS_PRIMITIVE: bool = true

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl CdrDecode for i64

Source§

const IS_PRIMITIVE: bool = true

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl CdrDecode for u8

Source§

const IS_PRIMITIVE: bool = true

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl CdrDecode for u16

Source§

const IS_PRIMITIVE: bool = true

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl CdrDecode for u32

Source§

const IS_PRIMITIVE: bool = true

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl CdrDecode for u64

Source§

const IS_PRIMITIVE: bool = true

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl<K, V> CdrDecode for BTreeMap<K, V>
where K: CdrDecode + Ord, V: CdrDecode,

Source§

fn decode(r: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl<T: CdrDecode + Default + Copy, const N: usize> CdrDecode for [T; N]

Source§

const IS_PRIMITIVE: bool = T::IS_PRIMITIVE

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl<T: CdrDecode> CdrDecode for Option<T>

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Source§

impl<T: CdrDecode> CdrDecode for Vec<T>

Source§

fn decode(reader: &mut BufferReader<'_>) -> Result<Self, DecodeError>

Implementors§

Source§

impl CdrDecode for CorbaAny

Source§

impl CdrDecode for WChar

Source§

impl CdrDecode for WString

Source§

impl<const P: u32, const S: u32> CdrDecode for Fixed<P, S>