#[non_exhaustive]#[repr(u8)]pub enum ChannelDataType {
Show 17 variants
UnsignedIntegerLe = 0,
UnsignedIntegerBe = 1,
SignedIntegerLe = 2,
SignedIntegerBe = 3,
FloatLe = 4,
FloatBe = 5,
StringAscii = 6,
StringUTF8 = 7,
StringUTF16Le = 8,
StringUTF16Be = 9,
ByteArray = 10,
MimeSample = 11,
MimeStream = 12,
CanOpenDate = 13,
CanOpenTime = 14,
ComplexLe = 15,
ComplexBe = 16,
}Expand description
\brief Channel data type.
Defines the channel data type. Avoid defining value sizes that doesn’t align to a byte size.
The Le and Be extension is related to byte order. Little endian (Intel byte order) while big endian (Motorola byte order).
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.
UnsignedIntegerLe = 0
< Unsigned integer, little endian.
UnsignedIntegerBe = 1
< Unsigned integer, big endian.
SignedIntegerLe = 2
< Signed integer, little endian.
SignedIntegerBe = 3
< Signed integer, big endian.
FloatLe = 4
< Float, little endian.
FloatBe = 5
< Float, big endian.
StringAscii = 6
< Text, ISO-8859-1 coded
StringUTF8 = 7
< Text, UTF8 coded.
StringUTF16Le = 8
< Text, UTF16 coded little endian.
StringUTF16Be = 9
< Text, UTF16 coded big endian.
ByteArray = 10
< Byte array.
MimeSample = 11
< MIME sample byte array.
MimeStream = 12
< MIME stream byte array.
CanOpenDate = 13
< 7-byte CANOpen date.
CanOpenTime = 14
< 6-byte CANOpen time.
ComplexLe = 15
< Complex value, little endian.
ComplexBe = 16
< Complex value, big endian.
Trait Implementations§
Source§impl Clone for ChannelDataType
impl Clone for ChannelDataType
Source§fn clone(&self) -> ChannelDataType
fn clone(&self) -> ChannelDataType
Returns a duplicate of the value. Read more
1.0.0 · 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 ChannelDataType
impl Debug for ChannelDataType
Source§impl Hash for ChannelDataType
impl Hash for ChannelDataType
Source§impl Ord for ChannelDataType
impl Ord for ChannelDataType
Source§fn cmp(&self, other: &ChannelDataType) -> Ordering
fn cmp(&self, other: &ChannelDataType) -> Ordering
1.21.0 · 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
Source§impl PartialEq for ChannelDataType
impl PartialEq for ChannelDataType
Source§impl PartialOrd for ChannelDataType
impl PartialOrd for ChannelDataType
impl Copy for ChannelDataType
impl Eq for ChannelDataType
impl StructuralPartialEq for ChannelDataType
Auto Trait Implementations§
impl Freeze for ChannelDataType
impl RefUnwindSafe for ChannelDataType
impl Send for ChannelDataType
impl Sync for ChannelDataType
impl Unpin for ChannelDataType
impl UnsafeUnpin for ChannelDataType
impl UnwindSafe for ChannelDataType
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