#[non_exhaustive]pub enum UnlockStatus {
Unlocked,
UnlockFailed,
OngoingAuthorizedTransaction,
UnknownConnector,
UnknownValue(String),
}Expand description
This indicates whether the Charging Station has unlocked the connector.
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.
Unlocked
Unlocked.
UnlockFailed
UnlockFailed.
OngoingAuthorizedTransaction
OngoingAuthorizedTransaction.
UnknownConnector
UnknownConnector.
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 UnlockStatus
impl Clone for UnlockStatus
Source§impl Debug for UnlockStatus
impl Debug for UnlockStatus
Source§impl<'de> Deserialize<'de> for UnlockStatus
impl<'de> Deserialize<'de> for UnlockStatus
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 UnlockStatus
impl Display for UnlockStatus
impl Eq for UnlockStatus
Source§impl FromStr for UnlockStatus
impl FromStr for UnlockStatus
Source§impl Hash for UnlockStatus
impl Hash for UnlockStatus
Source§impl Ord for UnlockStatus
impl Ord for UnlockStatus
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 UnlockStatus
impl PartialEq for UnlockStatus
Source§impl PartialOrd for UnlockStatus
impl PartialOrd for UnlockStatus
Source§impl Serialize for UnlockStatus
impl Serialize for UnlockStatus
impl StructuralPartialEq for UnlockStatus
Source§impl Validate for UnlockStatus
impl Validate for UnlockStatus
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 UnlockStatus
impl Freeze for UnlockStatus
impl Move for UnlockStatus
impl RefUnwindSafe for UnlockStatus
impl Send for UnlockStatus
impl Sync for UnlockStatus
impl Unpin for UnlockStatus
impl UnsafeUnpin for UnlockStatus
impl UnwindSafe for UnlockStatus
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