pub enum DataEncoding {
Integer(IntegerEncoding),
Float(FloatEncoding),
String(StringEncoding),
Binary(BinaryEncoding),
None,
}Expand description
How a value is laid out in the packet.
Variants§
Integer(IntegerEncoding)
<xtce:IntegerDataEncoding>.
Float(FloatEncoding)
<xtce:FloatDataEncoding>.
String(StringEncoding)
<xtce:StringDataEncoding>.
Binary(BinaryEncoding)
<xtce:BinaryDataEncoding>.
None
No usable encoding was found under the parameter type.
Implementations§
Source§impl DataEncoding
impl DataEncoding
Sourcepub fn fixed_size_in_bits(&self) -> Option<u32>
pub fn fixed_size_in_bits(&self) -> Option<u32>
Width in bits when fixed at load time.
Sourcepub fn default_calibrator(&self) -> Option<&Calibrator>
pub fn default_calibrator(&self) -> Option<&Calibrator>
The default calibrator, if the encoding supports calibration and declares one.
Sourcepub fn context_calibrators(&self) -> &[ContextCalibrator]
pub fn context_calibrators(&self) -> &[ContextCalibrator]
Context calibrators, in document order.
Trait Implementations§
Source§impl Clone for DataEncoding
impl Clone for DataEncoding
Auto Trait Implementations§
impl Forget for DataEncoding
impl Freeze for DataEncoding
impl Move for DataEncoding
impl RefUnwindSafe for DataEncoding
impl Send for DataEncoding
impl Sync for DataEncoding
impl Unpin for DataEncoding
impl UnsafeUnpin for DataEncoding
impl UnwindSafe for DataEncoding
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