#[non_exhaustive]pub enum CodeArea {
General,
InternalSystem,
Authentication,
Session,
Evse,
Unknown,
}Expand description
Which area of the protocol a Code belongs to, per the spec table’s third column.
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.
General
General codes.
InternalSystem
Internal system codes.
Authentication
Authentication codes.
Session
Session codes.
Evse
EVSE codes.
Unknown
A code this crate does not know.
Trait Implementations§
impl Copy for CodeArea
impl Eq for CodeArea
Source§impl Ord for CodeArea
impl Ord for CodeArea
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for CodeArea
impl PartialOrd for CodeArea
impl StructuralPartialEq for CodeArea
Auto Trait Implementations§
impl Freeze for CodeArea
impl RefUnwindSafe for CodeArea
impl Send for CodeArea
impl Sync for CodeArea
impl Unpin for CodeArea
impl UnsafeUnpin for CodeArea
impl UnwindSafe for CodeArea
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.