pub enum DecodedValue {
UnsignedInteger(u64),
SignedInteger(i64),
Float(f64),
String(String),
ByteArray(Vec<u8>),
MimeSample(Vec<u8>),
MimeStream(Vec<u8>),
Unknown,
}Expand description
An enum representing the decoded value of a channel sample.
This type represents all possible values that can be stored in an MDF channel.
Variants§
UnsignedInteger(u64)
Unsigned integer (up to 64 bits)
SignedInteger(i64)
Signed integer (up to 64 bits)
Float(f64)
Floating point value (32 or 64 bit)
String(String)
Text string (UTF-8 or converted from Latin-1)
ByteArray(Vec<u8>)
Raw byte array
MimeSample(Vec<u8>)
MIME sample data
MimeStream(Vec<u8>)
MIME stream data
Unknown
Unknown or unsupported data type
Implementations§
Source§impl DecodedValue
impl DecodedValue
Sourcepub fn is_integer(&self) -> bool
pub fn is_integer(&self) -> bool
Returns true if this is an integer value (signed or unsigned).
Trait Implementations§
Source§impl Clone for DecodedValue
impl Clone for DecodedValue
Source§fn clone(&self) -> DecodedValue
fn clone(&self) -> DecodedValue
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 DecodedValue
impl Debug for DecodedValue
Source§impl Display for DecodedValue
impl Display for DecodedValue
Source§impl PartialEq for DecodedValue
impl PartialEq for DecodedValue
impl StructuralPartialEq for DecodedValue
Auto Trait Implementations§
impl Freeze for DecodedValue
impl RefUnwindSafe for DecodedValue
impl Send for DecodedValue
impl Sync for DecodedValue
impl Unpin for DecodedValue
impl UnwindSafe for DecodedValue
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