#[non_exhaustive]pub enum TransactionMarker {
Begin,
Charging,
Exception,
End,
EndedLocally,
EndedRemotely,
Aborted,
PowerFailure,
Suspended,
TariffChange,
Undefined(char),
}Expand description
Why a reading was taken, and where it sits in a transaction
[OCMF Tab. 7, TX].
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.
Begin
B — begin of transaction.
Charging
C — charging (optional intermediate).
Exception
X — exception: time and/or energy are unusable from here on.
End
E — end of transaction.
EndedLocally
L — ended locally.
EndedRemotely
R — ended remotely.
Aborted
A — aborted by an error.
PowerFailure
P — ended by a power failure.
Suspended
S — suspended: transaction active, not charging.
TariffChange
T — tariff change.
Undefined(char)
A letter the table does not define. Neither a begin nor an end.
Implementations§
Source§impl TransactionMarker
impl TransactionMarker
Trait Implementations§
Source§impl Clone for TransactionMarker
impl Clone for TransactionMarker
impl Copy for TransactionMarker
Source§impl Debug for TransactionMarker
impl Debug for TransactionMarker
Source§impl Display for TransactionMarker
impl Display for TransactionMarker
impl Eq for TransactionMarker
Source§impl Hash for TransactionMarker
impl Hash for TransactionMarker
Source§impl PartialEq for TransactionMarker
impl PartialEq for TransactionMarker
Source§impl Serialize for TransactionMarker
Available on crate feature serde only.
impl Serialize for TransactionMarker
Available on crate feature
serde only.impl StructuralPartialEq for TransactionMarker
Auto Trait Implementations§
impl Forget for TransactionMarker
impl Freeze for TransactionMarker
impl Move for TransactionMarker
impl RefUnwindSafe for TransactionMarker
impl Send for TransactionMarker
impl Sync for TransactionMarker
impl Unpin for TransactionMarker
impl UnsafeUnpin for TransactionMarker
impl UnwindSafe for TransactionMarker
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