pub enum OCPP1_6Error {
NotImplemented {
description: String,
details: Value,
},
NotSupported {
description: String,
details: Value,
},
InternalError {
description: String,
details: Value,
},
ProtocolError {
description: String,
details: Value,
},
SecurityError {
description: String,
details: Value,
},
FormationViolation {
description: String,
details: Value,
},
PropertyConstraintViolation {
description: String,
details: Value,
},
OccurenceConstraintViolation {
description: String,
details: Value,
},
TypeConstraintViolation {
description: String,
details: Value,
},
GenericError {
description: String,
details: Value,
},
}
Expand description
Represents an OCPP 1.6 error
Variants§
NotImplemented
NotSupported
InternalError
ProtocolError
SecurityError
FormationViolation
PropertyConstraintViolation
OccurenceConstraintViolation
TypeConstraintViolation
GenericError
Implementations§
Source§impl OCPP1_6Error
impl OCPP1_6Error
pub fn new_not_implemented(description: &str) -> Self
pub fn new_security_error(description: &str) -> Self
pub fn new_formation_violation(description: &str) -> Self
pub fn new_internal<T: Display>(error: &T) -> Self
pub fn new_internal_str(description: &str) -> Self
pub fn code(&self) -> &str
pub fn description(&self) -> &str
pub fn details(&self) -> &Value
Trait Implementations§
Source§impl Clone for OCPP1_6Error
impl Clone for OCPP1_6Error
Source§fn clone(&self) -> OCPP1_6Error
fn clone(&self) -> OCPP1_6Error
Returns a duplicate of the value. Read more
1.0.0 · 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 OCPP1_6Error
impl Debug for OCPP1_6Error
Source§impl Display for OCPP1_6Error
impl Display for OCPP1_6Error
Source§impl Error for OCPP1_6Error
impl Error for OCPP1_6Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for OCPP1_6Error
impl RefUnwindSafe for OCPP1_6Error
impl Send for OCPP1_6Error
impl Sync for OCPP1_6Error
impl Unpin for OCPP1_6Error
impl UnwindSafe for OCPP1_6Error
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<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP