pub enum Encoding {
Giop1_0,
Giop1_1,
Giop1_2,
Xcdr1,
Xcdr2,
}Expand description
The encoding rules a stream follows.
The GIOP versions differ only in how wchar and wstring are encoded:
GIOP 1.0 has no wide characters, GIOP 1.1 encodes them as aligned
fixed-width code units, and GIOP 1.2 encodes them as octet sequences.
Xcdr1 and Xcdr2 are the
Extended CDR encodings of DDS-XTypes, versions 1 and 2. XCDR2 aligns
no primitive to more than 4 octets (max_align).
The headers they add (the payload header, DHEADER, EMHEADER, parameter
headers) are in xcdr; which of them a type needs is up to the code
that knows the type.
Variants§
Giop1_0
GIOP 1.0.
Giop1_1
GIOP 1.1.
Giop1_2
GIOP 1.2 and later.
Xcdr1
DDS-XTypes Extended CDR, encoding version 1.
Xcdr2
DDS-XTypes Extended CDR, encoding version 2.
Implementations§
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
Source§impl Ord for Encoding
impl Ord for Encoding
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Encoding
impl PartialOrd for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Forget for Encoding
impl Freeze for Encoding
impl Move for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnsafeUnpin for Encoding
impl UnwindSafe for Encoding
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