#[non_exhaustive]#[repr(i32)]pub enum MdfStorageType {
FixedLengthStorage = 0,
VlsdStorage = 1,
MlsdStorage = 2,
}Expand description
\brief Enumerate that defines how the raw data is stored. By default the fixed length record is stored. Only used when doing bus logging.
The fixed length storage is using one SD-block per byte array. The SD block is temporary stored in primary memory instead of store it on disc. This storage type is not recommended for bus logging.
The variable length storage uses an extra CG-record for byte array data. The storage type is used for bus logging where payload data is more than 8 byte.
The maximum length storage shall be used when payload data is 8 bytes or less. It is typically used when logging CAN messages which have 0-8 data payload.
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.
FixedLengthStorage = 0
< The default is to use fixed length records.
VlsdStorage = 1
< Using variable length storage.
MlsdStorage = 2
< Using maximum length storage
Trait Implementations§
Source§impl Clone for MdfStorageType
impl Clone for MdfStorageType
Source§fn clone(&self) -> MdfStorageType
fn clone(&self) -> MdfStorageType
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 MdfStorageType
impl Debug for MdfStorageType
Source§impl Hash for MdfStorageType
impl Hash for MdfStorageType
Source§impl Ord for MdfStorageType
impl Ord for MdfStorageType
Source§fn cmp(&self, other: &MdfStorageType) -> Ordering
fn cmp(&self, other: &MdfStorageType) -> 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 MdfStorageType
impl PartialEq for MdfStorageType
Source§impl PartialOrd for MdfStorageType
impl PartialOrd for MdfStorageType
impl Copy for MdfStorageType
impl Eq for MdfStorageType
impl StructuralPartialEq for MdfStorageType
Auto Trait Implementations§
impl Freeze for MdfStorageType
impl RefUnwindSafe for MdfStorageType
impl Send for MdfStorageType
impl Sync for MdfStorageType
impl Unpin for MdfStorageType
impl UnsafeUnpin for MdfStorageType
impl UnwindSafe for MdfStorageType
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