#[non_exhaustive]pub enum ChargePointErrorCode {
Show 17 variants
ConnectorLockFailure,
EVCommunicationError,
GroundFailure,
HighTemperature,
InternalError,
LocalListConflict,
NoError,
OtherError,
OverCurrentFailure,
PowerMeterFailure,
PowerSwitchFailure,
ReaderFailure,
ResetFailure,
UnderVoltage,
OverVoltage,
WeakSignal,
UnknownValue(String),
}Expand description
The OCPP 1.6 ChargePointErrorCode enumeration.
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.
ConnectorLockFailure
ConnectorLockFailure.
EVCommunicationError
EVCommunicationError.
GroundFailure
GroundFailure.
HighTemperature
HighTemperature.
InternalError
InternalError.
LocalListConflict
LocalListConflict.
NoError
NoError.
OtherError
OtherError.
OverCurrentFailure
OverCurrentFailure.
PowerMeterFailure
PowerMeterFailure.
PowerSwitchFailure
PowerSwitchFailure.
ReaderFailure
ReaderFailure.
ResetFailure
ResetFailure.
UnderVoltage
UnderVoltage.
OverVoltage
OverVoltage.
WeakSignal
WeakSignal.
UnknownValue(String)
A value that this version of OCPP does not define.
Produced instead of failing, so a peer’s forward-compatible extension does not
take down the connection. Reported by
Validate as
ViolationKind::UnknownEnumValue,
which the decoder turns into a PropertyConstraintViolation unless
UnknownEnumValues::Preserve is set.
Named UnknownValue because Unknown is itself a defined value of several
OCPP enumerations.
Implementations§
Trait Implementations§
Source§impl Clone for ChargePointErrorCode
impl Clone for ChargePointErrorCode
Source§impl Debug for ChargePointErrorCode
impl Debug for ChargePointErrorCode
Source§impl<'de> Deserialize<'de> for ChargePointErrorCode
impl<'de> Deserialize<'de> for ChargePointErrorCode
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ChargePointErrorCode
impl Display for ChargePointErrorCode
impl Eq for ChargePointErrorCode
Source§impl FromStr for ChargePointErrorCode
impl FromStr for ChargePointErrorCode
Source§impl Hash for ChargePointErrorCode
impl Hash for ChargePointErrorCode
Source§impl Ord for ChargePointErrorCode
impl Ord for ChargePointErrorCode
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 PartialEq for ChargePointErrorCode
impl PartialEq for ChargePointErrorCode
Source§impl PartialOrd for ChargePointErrorCode
impl PartialOrd for ChargePointErrorCode
Source§impl Serialize for ChargePointErrorCode
impl Serialize for ChargePointErrorCode
impl StructuralPartialEq for ChargePointErrorCode
Source§impl Validate for ChargePointErrorCode
impl Validate for ChargePointErrorCode
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
Appends this value’s violations to
out, relative to path.Auto Trait Implementations§
impl Forget for ChargePointErrorCode
impl Freeze for ChargePointErrorCode
impl Move for ChargePointErrorCode
impl RefUnwindSafe for ChargePointErrorCode
impl Send for ChargePointErrorCode
impl Sync for ChargePointErrorCode
impl Unpin for ChargePointErrorCode
impl UnsafeUnpin for ChargePointErrorCode
impl UnwindSafe for ChargePointErrorCode
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