#[non_exhaustive]pub enum DataTrackFrameEncoding {
Ros1,
Cdr,
Protobuf,
Flatbuffer,
Cbor,
Msgpack,
Json,
Other,
Custom(String),
}Expand description
Encoding used for frames pushed on a data track.
The serialization format of the frame bytes (e.g. Protobuf); the structure
of those bytes is described by a schema, see DataTrackSchemaEncoding.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ros1
ROS 1, must be described by a Ros1Msg schema.
Cdr
Protobuf
Protocol Buffer, must be described by a Protobuf schema.
Flatbuffer
FlatBuffer, must be described by a Flatbuffer schema.
Cbor
CBOR, self-describing.
Msgpack
MessagePack, self-describing.
Json
JSON, self-describing or described by a JsonSchema schema.
Other
Another well-known encoding not known to this client version.
Custom(String)
An application-specific encoding identified by the contained string.
Prefer using one of the well-known encodings unless the format is not enumerated. The identifier must be non-empty and not exceed the server’s length limit.
Trait Implementations§
Source§impl Clone for DataTrackFrameEncoding
impl Clone for DataTrackFrameEncoding
Source§fn clone(&self) -> DataTrackFrameEncoding
fn clone(&self) -> DataTrackFrameEncoding
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 moreSource§impl Debug for DataTrackFrameEncoding
impl Debug for DataTrackFrameEncoding
impl Eq for DataTrackFrameEncoding
Source§impl From<DataTrackFrameEncoding> for DataTrackFrameEncoding
impl From<DataTrackFrameEncoding> for DataTrackFrameEncoding
Source§fn from(msg: DataTrackFrameEncoding) -> Self
fn from(msg: DataTrackFrameEncoding) -> Self
Converts to this type from the input type.
Source§impl From<DataTrackFrameEncoding> for DataTrackFrameEncoding
impl From<DataTrackFrameEncoding> for DataTrackFrameEncoding
Source§fn from(value: DataTrackFrameEncoding) -> Self
fn from(value: DataTrackFrameEncoding) -> Self
Converts to this type from the input type.
Source§impl Hash for DataTrackFrameEncoding
impl Hash for DataTrackFrameEncoding
Source§impl PartialEq for DataTrackFrameEncoding
impl PartialEq for DataTrackFrameEncoding
impl StructuralPartialEq for DataTrackFrameEncoding
Auto Trait Implementations§
impl Freeze for DataTrackFrameEncoding
impl RefUnwindSafe for DataTrackFrameEncoding
impl Send for DataTrackFrameEncoding
impl Sync for DataTrackFrameEncoding
impl Unpin for DataTrackFrameEncoding
impl UnsafeUnpin for DataTrackFrameEncoding
impl UnwindSafe for DataTrackFrameEncoding
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.