#[non_exhaustive]pub enum BootReason {
ApplicationReset,
FirmwareUpdate,
LocalReset,
PowerUp,
RemoteReset,
ScheduledReset,
Triggered,
Unknown,
Watchdog,
UnknownValue(String),
}Expand description
This contains the reason for sending this message to the CSMS.
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.
ApplicationReset
ApplicationReset.
FirmwareUpdate
FirmwareUpdate.
LocalReset
LocalReset.
PowerUp
PowerUp.
RemoteReset
RemoteReset.
ScheduledReset
ScheduledReset.
Triggered
Triggered.
Unknown
Unknown.
Watchdog
Watchdog.
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 BootReason
impl Clone for BootReason
Source§fn clone(&self) -> BootReason
fn clone(&self) -> BootReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BootReason
impl Debug for BootReason
Source§impl<'de> Deserialize<'de> for BootReason
impl<'de> Deserialize<'de> for BootReason
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 BootReason
impl Display for BootReason
impl Eq for BootReason
Source§impl FromStr for BootReason
impl FromStr for BootReason
Source§impl Hash for BootReason
impl Hash for BootReason
Source§impl Ord for BootReason
impl Ord for BootReason
Source§fn cmp(&self, other: &BootReason) -> Ordering
fn cmp(&self, other: &BootReason) -> Ordering
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 BootReason
impl PartialEq for BootReason
Source§impl PartialOrd for BootReason
impl PartialOrd for BootReason
Source§impl Serialize for BootReason
impl Serialize for BootReason
impl StructuralPartialEq for BootReason
Source§impl Validate for BootReason
impl Validate for BootReason
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 Freeze for BootReason
impl RefUnwindSafe for BootReason
impl Send for BootReason
impl Sync for BootReason
impl Unpin for BootReason
impl UnsafeUnpin for BootReason
impl UnwindSafe for BootReason
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