#[repr(u16)]pub enum DataType {
Show 18 variants
Boolean = 1,
Int8 = 2,
Int16 = 3,
Int32 = 4,
UInt8 = 5,
UInt16 = 6,
UInt32 = 7,
Real32 = 8,
VisibleString = 9,
OctetString = 10,
UnicodeString = 11,
TimeOfDay = 12,
TimeDifference = 13,
Domain = 15,
Real64 = 17,
Int64 = 21,
UInt64 = 27,
Other(u16),
}Expand description
Indicate the type of data stored in an object
Variants§
Boolean = 1
A true false value, encoded as a single byte, with 0 for false and 1 for true
Int8 = 2
A signed 8-bit integer
Int16 = 3
A signed 16-bit integer
Int32 = 4
A signed 32-bit integer
UInt8 = 5
An unsigned 8-bit integer
UInt16 = 6
An unsigned 16-bit integer
UInt32 = 7
An unsigned 32-bit integer
Real32 = 8
A 32-bit floating point value
VisibleString = 9
An ASCII/utf-8 string
OctetString = 10
A byte string
UnicodeString = 11
A unicode string
TimeOfDay = 12
Currently Unimplemented
TimeDifference = 13
Currently Unimplemented
Domain = 15
An arbitrary byte access type for e.g. data streams, or large chunks of data. Size is typically not known at build time.
Real64 = 17
A 64-bit floating point value
Int64 = 21
A signed 64-bit integer
UInt64 = 27
An unsigned 64-bit integer
Other(u16)
A contained for an unrecognized data type value
Implementations§
Trait Implementations§
impl Copy for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more