#[repr(u8)]pub enum SerializationFormatId {
Cdr = 1,
Uorb = 2,
}Expand description
Image-local discriminant for a serialization format.
In-tree formats hold low reserved values for readability. A third-party
format declared by a provider package (RFC-0087 family serdes) is assigned
a value by the build from the set of formats that image declares.
Variants§
Cdr = 1
OMG CDR as ROS 2 puts it on the wire, including the encapsulation header. Every DDS-derived backend and zenoh speak this.
Uorb = 2
PX4’s in-memory struct, verbatim — no encoding step at all (RFC-0011).
Implementations§
Trait Implementations§
Source§impl Clone for SerializationFormatId
impl Clone for SerializationFormatId
Source§fn clone(&self) -> SerializationFormatId
fn clone(&self) -> SerializationFormatId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SerializationFormatId
Source§impl Debug for SerializationFormatId
impl Debug for SerializationFormatId
impl Eq for SerializationFormatId
Source§impl PartialEq for SerializationFormatId
impl PartialEq for SerializationFormatId
Source§fn eq(&self, other: &SerializationFormatId) -> bool
fn eq(&self, other: &SerializationFormatId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SerializationFormatId
Auto Trait Implementations§
impl Freeze for SerializationFormatId
impl RefUnwindSafe for SerializationFormatId
impl Send for SerializationFormatId
impl Sync for SerializationFormatId
impl Unpin for SerializationFormatId
impl UnsafeUnpin for SerializationFormatId
impl UnwindSafe for SerializationFormatId
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