#[non_exhaustive]pub enum SecurityEvent {
Show 22 variants
FirmwareUpdated,
FailedToAuthenticateAtCsms,
CsmsFailedToAuthenticate,
SettingSystemTime,
StartupOfTheDevice,
ResetOrReboot,
SecurityLogWasCleared,
ReconfigurationOfSecurityParameters,
MemoryExhaustion,
InvalidMessages,
AttemptedReplayAttacks,
TamperDetectionActivated,
InvalidFirmwareSignature,
InvalidFirmwareSigningCertificate,
InvalidCsmsCertificate,
InvalidChargingStationCertificate,
DiscardedRenewedClientCertificate,
InvalidTLSVersion,
InvalidTLSCipherSuite,
MaintenanceLoginAccepted,
MaintenanceLoginFailed,
UnknownValue(String),
}Expand description
A security event from the standardized list.
The list is explicitly non-exhaustive: a vendor-specific event is carried in
UnknownValue, and the specification asks that a standardized event be used
wherever one matches.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FirmwareUpdated
FirmwareUpdated.
FailedToAuthenticateAtCsms
FailedToAuthenticateAtCsms.
CsmsFailedToAuthenticate
CsmsFailedToAuthenticate.
SettingSystemTime
SettingSystemTime.
StartupOfTheDevice
StartupOfTheDevice.
ResetOrReboot
ResetOrReboot.
SecurityLogWasCleared
SecurityLogWasCleared.
ReconfigurationOfSecurityParameters
ReconfigurationOfSecurityParameters.
MemoryExhaustion
MemoryExhaustion.
InvalidMessages
InvalidMessages.
AttemptedReplayAttacks
AttemptedReplayAttacks.
TamperDetectionActivated
TamperDetectionActivated.
InvalidFirmwareSignature
InvalidFirmwareSignature.
InvalidFirmwareSigningCertificate
InvalidFirmwareSigningCertificate.
InvalidCsmsCertificate
InvalidCsmsCertificate.
InvalidChargingStationCertificate
InvalidChargingStationCertificate.
DiscardedRenewedClientCertificate
DiscardedRenewedClientCertificate.
InvalidTLSVersion
InvalidTLSVersion.
InvalidTLSCipherSuite
InvalidTLSCipherSuite.
MaintenanceLoginAccepted
MaintenanceLoginAccepted.
MaintenanceLoginFailed
MaintenanceLoginFailed.
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§
Source§impl SecurityEvent
impl SecurityEvent
Source§impl SecurityEvent
impl SecurityEvent
Trait Implementations§
Source§impl Clone for SecurityEvent
impl Clone for SecurityEvent
Source§impl Debug for SecurityEvent
impl Debug for SecurityEvent
Source§impl<'de> Deserialize<'de> for SecurityEvent
impl<'de> Deserialize<'de> for SecurityEvent
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Source§impl Display for SecurityEvent
impl Display for SecurityEvent
impl Eq for SecurityEvent
Source§impl FromStr for SecurityEvent
impl FromStr for SecurityEvent
Source§impl Hash for SecurityEvent
impl Hash for SecurityEvent
Source§impl Ord for SecurityEvent
impl Ord for SecurityEvent
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SecurityEvent
impl PartialEq for SecurityEvent
Source§impl PartialOrd for SecurityEvent
impl PartialOrd for SecurityEvent
Source§impl Serialize for SecurityEvent
impl Serialize for SecurityEvent
impl StructuralPartialEq for SecurityEvent
Source§impl Validate for SecurityEvent
impl Validate for SecurityEvent
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
out, relative to path.